Struct xpcom::interfaces::nsIXPCComponentsBase
[−]
[src]
#[repr(C)]pub struct nsIXPCComponentsBase { /* fields omitted */ }
interface nsIXPCComponentsBase : nsISupports
/**
* Interface for the 'Components' object.
*
* The first interface contains things that are available to non-chrome XBL code
* that runs in a scope with an ExpandedPrincipal. The second interface
* includes members that are only exposed to chrome.
*/
Methods
impl nsIXPCComponentsBase
[src]
pub fn coerce<T: nsIXPCComponentsBaseCoerce>(&self) -> &T
[src]
Cast this nsIXPCComponentsBase
to one of its base interfaces.
impl nsIXPCComponentsBase
[src]
pub unsafe fn GetInterfaces(
&self,
aInterfaces: *mut *const nsIXPCComponents_Interfaces
) -> nsresult
[src]
&self,
aInterfaces: *mut *const nsIXPCComponents_Interfaces
) -> nsresult
readonly attribute nsIXPCComponents_Interfaces interfaces;
pub unsafe fn GetInterfacesByID(
&self,
aInterfacesByID: *mut *const nsIXPCComponents_InterfacesByID
) -> nsresult
[src]
&self,
aInterfacesByID: *mut *const nsIXPCComponents_InterfacesByID
) -> nsresult
readonly attribute nsIXPCComponents_InterfacesByID interfacesByID;
pub unsafe fn GetResults(
&self,
aResults: *mut *const nsIXPCComponents_Results
) -> nsresult
[src]
&self,
aResults: *mut *const nsIXPCComponents_Results
) -> nsresult
readonly attribute nsIXPCComponents_Results results;
pub unsafe fn IsSuccessCode(
&self,
result: nsresult,
_retval: *mut bool
) -> nsresult
[src]
&self,
result: nsresult,
_retval: *mut bool
) -> nsresult
boolean isSuccessCode (in nsresult result);
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 nsIXPCComponentsBase
[src]
const IID: nsIID
IID: nsIID = nsID(4008368687, 34496, 17929, [178, 191, 75, 242, 53, 27, 28, 230])
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 nsIXPCComponentsBase
[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 nsIXPCComponentsBase
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.