Struct xpcom::interfaces::nsIXPCConstructor
[−]
[src]
#[repr(C)]pub struct nsIXPCConstructor { /* fields omitted */ }
interface nsIXPCConstructor : nsISupports
/**
* interface of object returned by Components.Constructor
* (additional interesting stuff only reflected into JavaScript)
*/
Methods
impl nsIXPCConstructor
[src]
pub fn coerce<T: nsIXPCConstructorCoerce>(&self) -> &T
[src]
Cast this nsIXPCConstructor
to one of its base interfaces.
impl nsIXPCConstructor
[src]
pub unsafe fn GetClassID(&self, aClassID: *mut *const nsIJSCID) -> nsresult
[src]
readonly attribute nsIJSCID classID;
pub unsafe fn GetInterfaceID(
&self,
aInterfaceID: *mut *const nsIJSIID
) -> nsresult
[src]
&self,
aInterfaceID: *mut *const nsIJSIID
) -> nsresult
readonly attribute nsIJSIID interfaceID;
pub unsafe fn GetInitializer(
&self,
aInitializer: *mut *const c_char
) -> nsresult
[src]
&self,
aInitializer: *mut *const c_char
) -> nsresult
readonly attribute string initializer;
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 nsIXPCConstructor
[src]
const IID: nsIID
IID: nsIID = nsID(3356805664, 57564, 4563, [143, 95, 0, 16, 164, 231, 61, 154])
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 nsIXPCConstructor
[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 nsIXPCConstructor
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.