Struct xpcom::interfaces::nsIURIClassifierCallback
[−]
[src]
#[repr(C)]pub struct nsIURIClassifierCallback { /* fields omitted */ }
interface nsIURIClassifierCallback : nsISupports
/**
* Callback function for nsIURIClassifier lookups.
*/
Methods
impl nsIURIClassifierCallback
[src]
pub fn coerce<T: nsIURIClassifierCallbackCoerce>(&self) -> &T
[src]
Cast this nsIURIClassifierCallback
to one of its base interfaces.
impl nsIURIClassifierCallback
[src]
pub unsafe fn OnClassifyComplete(
&self,
aErrorCode: nsresult,
aList: &nsACString,
aProvider: &nsACString,
aFullHash: &nsACString
) -> nsresult
[src]
&self,
aErrorCode: nsresult,
aList: &nsACString,
aProvider: &nsACString,
aFullHash: &nsACString
) -> nsresult
/**
* Called by the URI classifier service when it is done checking a URI.
*
* Clients are responsible for associating callback objects with classify()
* calls.
*
* @param aErrorCode
* The error code with which the channel should be cancelled, or
* NS_OK if the load should continue normally.
* @param aList
* Name of the list that matched
* @param aProvider
* Name of provider that matched
* @param aFullHash
* Full hash of URL that matched
*/
void onClassifyComplete (in nsresult aErrorCode, in ACString aList, in ACString aProvider, in ACString aFullHash);
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 nsIURIClassifierCallback
[src]
const IID: nsIID
IID: nsIID = nsID(2410472558, 3222, 18191, [175, 64, 0, 55, 220, 215, 151, 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 nsIURIClassifierCallback
[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 nsIURIClassifierCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.