Struct xpcom::interfaces::nsIServiceWorkerInfo
[−]
[src]
#[repr(C)]pub struct nsIServiceWorkerInfo { /* fields omitted */ }
interface nsIServiceWorkerInfo : nsISupports
Methods
impl nsIServiceWorkerInfo
[src]
pub fn coerce<T: nsIServiceWorkerInfoCoerce>(&self) -> &T
[src]
Cast this nsIServiceWorkerInfo
to one of its base interfaces.
impl nsIServiceWorkerInfo
[src]
pub const STATE_PARSED: i64
STATE_PARSED: i64 = 0
pub const STATE_INSTALLING: i64
STATE_INSTALLING: i64 = 1
pub const STATE_INSTALLED: i64
STATE_INSTALLED: i64 = 2
pub const STATE_ACTIVATING: i64
STATE_ACTIVATING: i64 = 3
pub const STATE_ACTIVATED: i64
STATE_ACTIVATED: i64 = 4
pub const STATE_REDUNDANT: i64
STATE_REDUNDANT: i64 = 5
pub const STATE_UNKNOWN: i64
STATE_UNKNOWN: i64 = 6
pub unsafe fn GetScriptSpec(&self, aScriptSpec: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString scriptSpec;
pub unsafe fn GetCacheName(&self, aCacheName: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString cacheName;
pub unsafe fn GetState(&self, aState: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short state;
pub unsafe fn GetDebugger(
&self,
aDebugger: *mut *const nsIWorkerDebugger
) -> nsresult
[src]
&self,
aDebugger: *mut *const nsIWorkerDebugger
) -> nsresult
readonly attribute nsIWorkerDebugger debugger;
pub unsafe fn GetHandlesFetchEvents(
&self,
aHandlesFetchEvents: *mut bool
) -> nsresult
[src]
&self,
aHandlesFetchEvents: *mut bool
) -> nsresult
readonly attribute bool handlesFetchEvents;
pub unsafe fn GetInstalledTime(&self, aInstalledTime: *mut PRTime) -> nsresult
[src]
readonly attribute PRTime installedTime;
pub unsafe fn GetActivatedTime(&self, aActivatedTime: *mut PRTime) -> nsresult
[src]
readonly attribute PRTime activatedTime;
pub unsafe fn GetRedundantTime(&self, aRedundantTime: *mut PRTime) -> nsresult
[src]
readonly attribute PRTime redundantTime;
pub unsafe fn AttachDebugger(&self) -> nsresult
[src]
void attachDebugger ();
pub unsafe fn DetachDebugger(&self) -> nsresult
[src]
void detachDebugger ();
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 nsIServiceWorkerInfo
[src]
const IID: nsIID
IID: nsIID = nsID(1994610669, 8333, 20044, [145, 101, 28, 64, 89, 112, 120, 121])
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 nsIServiceWorkerInfo
[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 nsIServiceWorkerInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.