Struct xpcom::interfaces::nsIAsyncShutdownBarrier
[−]
[src]
#[repr(C)]pub struct nsIAsyncShutdownBarrier { /* fields omitted */ }
interface nsIAsyncShutdownBarrier : nsISupports
/**
* A stage of shutdown that supports blocker registration.
*/
Methods
impl nsIAsyncShutdownBarrier
[src]
pub fn coerce<T: nsIAsyncShutdownBarrierCoerce>(&self) -> &T
[src]
Cast this nsIAsyncShutdownBarrier
to one of its base interfaces.
impl nsIAsyncShutdownBarrier
[src]
pub unsafe fn GetClient(
&self,
aClient: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aClient: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* The blocker registration capability. Most services may wish to
* publish this capability to let services that depend on it register
* blockers.
*/
readonly attribute nsIAsyncShutdownClient client;
pub unsafe fn GetState(&self, aState: *mut *const nsIPropertyBag) -> nsresult
[src]
/**
* The state of all the blockers of the barrier.
*
* See the documentation of `nsIAsyncShutdownBlocker` for the
* format.
*/
readonly attribute nsIPropertyBag state;
pub unsafe fn Wait(
&self,
aOnReady: *const nsIAsyncShutdownCompletionCallback
) -> nsresult
[src]
&self,
aOnReady: *const nsIAsyncShutdownCompletionCallback
) -> nsresult
/**
* Wait for all blockers to complete.
*
* Method `aOnReady` will be called once all blockers have finished.
* The callback always receives NS_OK.
*/
void wait (in nsIAsyncShutdownCompletionCallback aOnReady);
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 nsIAsyncShutdownBarrier
[src]
const IID: nsIID
IID: nsIID = nsID(1358596742, 40081, 16982, [131, 137, 23, 211, 16, 173, 236, 144])
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 nsIAsyncShutdownBarrier
[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 nsIAsyncShutdownBarrier
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.