Struct xpcom::interfaces::nsICancelable
[−]
[src]
#[repr(C)]pub struct nsICancelable { /* fields omitted */ }
interface nsICancelable : nsISupports
/**
* This interface provides a means to cancel an operation that is in progress.
*/
Methods
impl nsICancelable
[src]
pub fn coerce<T: nsICancelableCoerce>(&self) -> &T
[src]
Cast this nsICancelable
to one of its base interfaces.
impl nsICancelable
[src]
pub unsafe fn Cancel(&self, aReason: nsresult) -> nsresult
[src]
/**
* Call this method to request that this object abort whatever operation it
* may be performing.
*
* @param aReason
* Pass a failure code to indicate the reason why this operation is
* being canceled. It is an error to pass a success code.
*/
void cancel (in nsresult aReason);
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 nsICancelable
[src]
const IID: nsIID
IID: nsIID = nsID(3645554848, 47896, 18104, [132, 78, 132, 21, 144, 100, 176, 189])
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 nsICancelable
[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 nsICancelable
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.