Struct xpcom::interfaces::nsIUrlClassifierUpdateObserver
[−]
[src]
#[repr(C)]pub struct nsIUrlClassifierUpdateObserver { /* fields omitted */ }
interface nsIUrlClassifierUpdateObserver : nsISupports
/**
* The nsIUrlClassifierUpdateObserver interface is implemented by
* clients streaming updates to the url-classifier (usually
* nsUrlClassifierStreamUpdater.
*/
Methods
impl nsIUrlClassifierUpdateObserver
[src]
pub fn coerce<T: nsIUrlClassifierUpdateObserverCoerce>(&self) -> &T
[src]
Cast this nsIUrlClassifierUpdateObserver
to one of its base interfaces.
impl nsIUrlClassifierUpdateObserver
[src]
pub unsafe fn UpdateUrlRequested(
&self,
url: &nsACString,
table: &nsACString
) -> nsresult
[src]
&self,
url: &nsACString,
table: &nsACString
) -> nsresult
/**
* The update requested a new URL whose contents should be downloaded
* and sent to the classifier as a new stream.
*
* @param url The url that was requested.
* @param table The table name that this URL's contents will be associated
* with. This should be passed back to beginStream().
*/
void updateUrlRequested (in ACString url, in ACString table);
pub unsafe fn StreamFinished(
&self,
status: nsresult,
delay: uint32_t
) -> nsresult
[src]
&self,
status: nsresult,
delay: uint32_t
) -> nsresult
/**
* A stream update has completed.
*
* @param status The state of the update process.
* @param delay The amount of time the updater should wait to fetch the
* next URL in ms.
*/
void streamFinished (in nsresult status, in unsigned long delay);
pub unsafe fn UpdateError(&self, error: nsresult) -> nsresult
[src]
void updateError (in nsresult error);
pub unsafe fn UpdateSuccess(&self, requestedTimeout: uint32_t) -> nsresult
[src]
/**
* The update has completed successfully.
*
* @param requestedTimeout The number of seconds that the caller should
* wait before trying to update again.
**/
void updateSuccess (in unsigned long requestedTimeout);
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 nsIUrlClassifierUpdateObserver
[src]
const IID: nsIID
IID: nsIID = nsID(2678134113, 22550, 19995, [188, 201, 182, 41, 202, 5, 204, 230])
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 nsIUrlClassifierUpdateObserver
[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 nsIUrlClassifierUpdateObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.