Struct xpcom::interfaces::nsIDownloadManagerResult
[−]
[src]
#[repr(C)]pub struct nsIDownloadManagerResult { /* fields omitted */ }
interface nsIDownloadManagerResult : nsISupports
Methods
impl nsIDownloadManagerResult
[src]
pub fn coerce<T: nsIDownloadManagerResultCoerce>(&self) -> &T
[src]
Cast this nsIDownloadManagerResult
to one of its base interfaces.
impl nsIDownloadManagerResult
[src]
pub unsafe fn HandleResult(
&self,
aStatus: nsresult,
aDownload: *const nsIDownload
) -> nsresult
[src]
&self,
aStatus: nsresult,
aDownload: *const nsIDownload
) -> nsresult
/**
* Process an asynchronous result from getDownloadByGUID.
*
* @param aStatus The result code of the operation:
* * NS_OK: an item was found. No other success values are returned.
* * NS_ERROR_NOT_AVAILABLE: no such item was found.
* * Other error values are possible, but less well-defined.
*/
void handleResult (in nsresult aStatus, in nsIDownload aDownload);
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 nsIDownloadManagerResult
[src]
const IID: nsIID
IID: nsIID = nsID(201850859, 31003, 18931, [174, 56, 44, 51, 31, 213, 90, 82])
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 nsIDownloadManagerResult
[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 nsIDownloadManagerResult
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.