Struct xpcom::interfaces::nsIApplicationReputationCallback
[−]
[src]
#[repr(C)]pub struct nsIApplicationReputationCallback { /* fields omitted */ }
interface nsIApplicationReputationCallback : nsISupports
Methods
impl nsIApplicationReputationCallback
[src]
pub fn coerce<T: nsIApplicationReputationCallbackCoerce>(&self) -> &T
[src]
Cast this nsIApplicationReputationCallback
to one of its base interfaces.
impl nsIApplicationReputationCallback
[src]
pub unsafe fn OnComplete(
&self,
aShouldBlock: bool,
aStatus: nsresult,
aVerdict: uint32_t
) -> nsresult
[src]
&self,
aShouldBlock: bool,
aStatus: nsresult,
aVerdict: uint32_t
) -> nsresult
/**
* Callback for the result of the application reputation query.
* @param aStatus
* NS_OK if and only if the query succeeded. If it did, then
* shouldBlock is meaningful (otherwise it defaults to false). This
* may be NS_ERROR_FAILURE if the response cannot be parsed, or
* NS_ERROR_NOT_AVAILABLE if the service has been disabled or is not
* reachable.
* @param aShouldBlock
* Whether or not the download should be blocked.
* @param aVerdict
* Indicates the result of the lookup that determines whether the
* download should be blocked, according to the "VERDICT_" constants.
* This may be set to a value different than "VERDICT_SAFE" even if
* aShouldBlock is false, so you should always check aShouldBlock.
*/
void onComplete (in bool aShouldBlock, in nsresult aStatus, in unsigned long aVerdict);
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 nsIApplicationReputationCallback
[src]
const IID: nsIID
IID: nsIID = nsID(2585953392, 53221, 4578, [139, 139, 8, 0, 32, 12, 154, 102])
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 nsIApplicationReputationCallback
[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 nsIApplicationReputationCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.