Struct xpcom::interfaces::nsIAsyncShutdownService
[−]
[src]
#[repr(C)]pub struct nsIAsyncShutdownService { /* fields omitted */ }
interface nsIAsyncShutdownService : nsISupports
/**
* A service that allows registering shutdown-time dependencies.
*/
Methods
impl nsIAsyncShutdownService
[src]
pub fn coerce<T: nsIAsyncShutdownServiceCoerce>(&self) -> &T
[src]
Cast this nsIAsyncShutdownService
to one of its base interfaces.
impl nsIAsyncShutdownService
[src]
pub unsafe fn MakeBarrier(
&self,
aName: &nsAString,
_retval: *mut *const nsIAsyncShutdownBarrier
) -> nsresult
[src]
&self,
aName: &nsAString,
_retval: *mut *const nsIAsyncShutdownBarrier
) -> nsresult
/**
* Create a new barrier.
*
* By convention, the name should respect the following format:
* "MyModuleName: Doing something while it's time"
* e.g.
* "OS.File: Waiting for clients to flush before shutting down"
*
* This attribute is uploaded as part of crash reports.
*/
nsIAsyncShutdownBarrier makeBarrier (in AString aName);
pub unsafe fn GetProfileBeforeChange(
&self,
aProfileBeforeChange: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aProfileBeforeChange: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* Barrier for notification profile-before-change.
*/
readonly attribute nsIAsyncShutdownClient profileBeforeChange;
pub unsafe fn GetProfileChangeTeardown(
&self,
aProfileChangeTeardown: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aProfileChangeTeardown: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* Barrier for notification profile-change-teardown.
*/
readonly attribute nsIAsyncShutdownClient profileChangeTeardown;
pub unsafe fn GetQuitApplicationGranted(
&self,
aQuitApplicationGranted: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aQuitApplicationGranted: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* Barrier for notification quit-application-granted.
*/
readonly attribute nsIAsyncShutdownClient quitApplicationGranted;
pub unsafe fn GetSendTelemetry(
&self,
aSendTelemetry: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aSendTelemetry: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* Barrier for notification profile-before-change-telemetry.
*/
readonly attribute nsIAsyncShutdownClient sendTelemetry;
pub unsafe fn GetWebWorkersShutdown(
&self,
aWebWorkersShutdown: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aWebWorkersShutdown: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* Barrier for notification web-workers-shutdown.
*/
readonly attribute nsIAsyncShutdownClient webWorkersShutdown;
pub unsafe fn GetXpcomWillShutdown(
&self,
aXpcomWillShutdown: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aXpcomWillShutdown: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* Barrier for notification xpcom-will-shutdown.
*/
readonly attribute nsIAsyncShutdownClient xpcomWillShutdown;
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 nsIAsyncShutdownService
[src]
const IID: nsIID
IID: nsIID = nsID(3677772920, 51296, 20068, [154, 99, 37, 183, 63, 137, 160, 22])
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 nsIAsyncShutdownService
[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 nsIAsyncShutdownService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.