Struct xpcom::interfaces::nsIGeneralResponseData
[−]
[src]
#[repr(C)]pub struct nsIGeneralResponseData { /* fields omitted */ }
interface nsIGeneralResponseData : nsIPaymentResponseData
/**
* The general purpose response data.
*/
Methods
impl nsIGeneralResponseData
[src]
pub fn coerce<T: nsIGeneralResponseDataCoerce>(&self) -> &T
[src]
Cast this nsIGeneralResponseData
to one of its base interfaces.
impl nsIGeneralResponseData
[src]
pub unsafe fn GetData(&self, aData: &mut nsAString) -> nsresult
[src]
/**
* The stringified response data.
*/
readonly attribute AString data;
Methods from Deref<Target = nsIPaymentResponseData>
pub fn coerce<T: nsIPaymentResponseDataCoerce>(&self) -> &T
[src]
Cast this nsIPaymentResponseData
to one of its base interfaces.
pub const GENERAL_RESPONSE: i64
pub const BASICCARD_RESPONSE: i64
pub unsafe fn GetType(&self, aType: *mut uint32_t) -> nsresult
[src]
/**
* The response data type.
* Using the above defined consts(GENERAL_RESPONSE or BASICCARD_RESPONSE).
*/
readonly attribute uint32_t type;
pub unsafe fn Init(&self, aType: uint32_t) -> nsresult
[src]
/**
* The initial method.
* @param aType - the response data type.
*/
void init (in uint32_t aType);
Trait Implementations
impl XpCom for nsIGeneralResponseData
[src]
const IID: nsIID
IID: nsIID = nsID(3112597310, 11056, 20178, [184, 254, 106, 150, 99, 28, 128, 0])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIGeneralResponseData
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIGeneralResponseData
[src]
type Target = nsIPaymentResponseData
The resulting type after dereferencing.
fn deref(&self) -> &nsIPaymentResponseData
[src]
Dereferences the value.