Struct xpcom::interfaces::nsIUrlClassifierHashCompleterCallback
[−]
[src]
#[repr(C)]pub struct nsIUrlClassifierHashCompleterCallback { /* fields omitted */ }
interface nsIUrlClassifierHashCompleterCallback : nsISupports
/**
* This interface is implemented by nsIUrlClassifierHashCompleter clients.
*/
Methods
impl nsIUrlClassifierHashCompleterCallback
[src]
pub fn coerce<T: nsIUrlClassifierHashCompleterCallbackCoerce>(&self) -> &T
[src]
Cast this nsIUrlClassifierHashCompleterCallback
to one of its base interfaces.
impl nsIUrlClassifierHashCompleterCallback
[src]
pub unsafe fn CompletionV2(
&self,
hash: &nsACString,
table: &nsACString,
chunkId: uint32_t
) -> nsresult
[src]
&self,
hash: &nsACString,
table: &nsACString,
chunkId: uint32_t
) -> nsresult
/**
* A complete hash has been found that matches the partial hash.
* This method may be called 0-n times for a given
* nsIUrlClassifierCompleter::complete() call.
*
* @param hash
* The 256-bit hash that was discovered.
* @param table
* The name of the table that this hash belongs to.
* @param chunkId
* The database chunk that this hash belongs to.
*/
void completionV2 (in ACString hash, in ACString table, in uint32_t chunkId);
pub unsafe fn CompletionV4(
&self,
partialHash: &nsACString,
table: &nsACString,
negativeCacheDuration: uint32_t,
fullHashes: *const nsIArray
) -> nsresult
[src]
&self,
partialHash: &nsACString,
table: &nsACString,
negativeCacheDuration: uint32_t,
fullHashes: *const nsIArray
) -> nsresult
/**
* This will be called when a fullhash response is received and parsed
* no matter if any full hash has been found.
*
* @param partialHash
* The hash that was sent for completion.
* @param table
* The name of the table that this hash belongs to.
* @param negativeCacheDuration
* The negative cache duration in millisecond.
* @param fullHashes
* Array of fullhashes that match the prefix.
*/
void completionV4 (in ACString partialHash, in ACString table, in uint32_t negativeCacheDuration, in nsIArray fullHashes);
pub unsafe fn CompletionFinished(&self, status: nsresult) -> nsresult
[src]
/**
* The completion is complete. This method is called once per
* nsIUrlClassifierCompleter::complete() call, after all completion()
* calls are finished.
*
* @param status
* NS_OK if the request completed successfully, or an error code.
*/
void completionFinished (in nsresult status);
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 nsIUrlClassifierHashCompleterCallback
[src]
const IID: nsIID
IID: nsIID = nsID(3658931776, 57126, 16717, [189, 231, 196, 250, 244, 80, 72, 104])
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 nsIUrlClassifierHashCompleterCallback
[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 nsIUrlClassifierHashCompleterCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.