Struct xpcom::interfaces::nsIContentPrefCallback2
[−]
[src]
#[repr(C)]pub struct nsIContentPrefCallback2 { /* fields omitted */ }
interface nsIContentPrefCallback2 : nsISupports
Methods
impl nsIContentPrefCallback2
[src]
pub fn coerce<T: nsIContentPrefCallback2Coerce>(&self) -> &T
[src]
Cast this nsIContentPrefCallback2
to one of its base interfaces.
impl nsIContentPrefCallback2
[src]
pub const COMPLETE_OK: i64
COMPLETE_OK: i64 = 0
pub const COMPLETE_ERROR: i64
COMPLETE_ERROR: i64 = 1
pub unsafe fn HandleResult(&self, pref: *const nsIContentPref) -> nsresult
[src]
/**
* The callback used by the above methods.
*/
/**
* For the retrieval methods, this is called once for each retrieved
* preference. It is not called for other methods.
*
* @param pref The retrieved preference.
*/
void handleResult (in nsIContentPref pref);
pub unsafe fn HandleError(&self, error: nsresult) -> nsresult
[src]
/**
* Called when an error occurs. This may be called multiple times before
* handleCompletion is called.
*
* @param error A number in Components.results describing the error.
*/
void handleError (in nsresult error);
pub unsafe fn HandleCompletion(&self, reason: uint16_t) -> nsresult
[src]
/**
* Called when the method finishes. This will be called exactly once for
* each method invocation, and afterward no other callback methods will be
* called.
*
* @param reason One of the COMPLETE_* values indicating the manner in which
* the method completed.
*/
void handleCompletion (in unsigned short reason);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIContentPrefCallback2
[src]
const IID: nsIID
IID: nsIID = nsID(437440321, 31208, 19727, [152, 153, 47, 123, 39, 197, 217, 161])
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 nsIContentPrefCallback2
[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 nsIContentPrefCallback2
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.