Struct xpcom::interfaces::nsIXPCScriptable
[−]
[src]
#[repr(C)]pub struct nsIXPCScriptable { /* fields omitted */ }
interface nsIXPCScriptable : nsISupports
Methods
impl nsIXPCScriptable
[src]
pub fn coerce<T: nsIXPCScriptableCoerce>(&self) -> &T
[src]
Cast this nsIXPCScriptable
to one of its base interfaces.
impl nsIXPCScriptable
[src]
pub unsafe fn GetClassName(&self, aClassName: &mut nsACString) -> nsresult
[src]
/**
* Note: This is not really an XPCOM interface. For example, callers must
* guarantee that they set the *_retval of the various methods that return a
* boolean to PR_TRUE before making the call. Implementations may skip writing
* to *_retval unless they want to return PR_FALSE.
*/
readonly attribute AUTF8String className;
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 nsIXPCScriptable
[src]
const IID: nsIID
IID: nsIID = nsID(431426342, 31807, 17279, [160, 74, 42, 143, 158, 40, 182, 23])
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 nsIXPCScriptable
[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 nsIXPCScriptable
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.