Struct xpcom::interfaces::nsIApplicationReputationCallback [] [src]

#[repr(C)]
pub struct nsIApplicationReputationCallback { /* fields omitted */ }

interface nsIApplicationReputationCallback : nsISupports

Methods

impl nsIApplicationReputationCallback
[src]

[src]

Cast this nsIApplicationReputationCallback to one of its base interfaces.

impl nsIApplicationReputationCallback
[src]

[src]

/**
   * 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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIApplicationReputationCallback
[src]

IID: nsIID = nsID(2585953392, 53221, 4578, [139, 139, 8, 0, 32, 12, 154, 102])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIApplicationReputationCallback
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.