Struct xpcom::interfaces::nsINSSErrorsService [] [src]

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

interface nsINSSErrorsService : nsISupports

Methods

impl nsINSSErrorsService
[src]

[src]

Cast this nsINSSErrorsService to one of its base interfaces.

impl nsINSSErrorsService
[src]

ERROR_CLASS_SSL_PROTOCOL: i64 = 1

ERROR_CLASS_BAD_CERT: i64 = 2

NSS_SEC_ERROR_BASE: i64 = -8192
/**
     *  The following values define the range of NSPR error codes used by NSS.
     *  NSS remains the authorative source for these numbers, as a result,
     *  the values might change in the future.
     *  The security module will perform a runtime check and assertion
     *  to ensure the values are in synch with NSS.
     */

NSS_SEC_ERROR_LIMIT: i64 = -7192

NSS_SSL_ERROR_BASE: i64 = -12288

NSS_SSL_ERROR_LIMIT: i64 = -11288

MOZILLA_PKIX_ERROR_BASE: i64 = -16384
/**
     * The error codes within each module must fit in 16 bits. We want these
     * errors to fit in the same module as the NSS errors but not overlap with
     * any of them. Converting an NSS SEC, NSS SSL, or mozilla::pkix error to
     * an NS error involves negating the value of the error and then
     * synthesizing an error in the NS_ERROR_MODULE_SECURITY module. Hence,
     * mozilla::pkix errors will start at a negative value that both doesn't
     * overlap with the current value ranges for NSS errors and that will fit
     * in 16 bits when negated.
     *
     * Keep these in sync with pkixnss.h.
     */

MOZILLA_PKIX_ERROR_LIMIT: i64 = -15384

[src]

/**
     *  @param aNSPRCode An error code obtained using PR_GetError()
     *  @return True if it is error code defined by the NSS library
     */

[must_use] boolean isNSSErrorCode (in int32_t aNSPRCode);

[src]

/**
     *  Function will fail if aNSPRCode is not an NSS error code.
     *  @param aNSPRCode An error code obtained using PR_GetError()
     *  @return The result of the conversion, an XPCOM error code
     */

[must_use] nsresult getXPCOMFromNSSError (in int32_t aNSPRCode);

[src]

/**
     *  Function will fail if aXPCOMErrorCode is not an NSS error code.
     *  @param aXPCOMErrorCode An error code obtained using getXPCOMFromNSSError
     *  return A localized human readable error explanation.
     */

AString getErrorMessage (in nsresult aXPCOMErrorCode);

[src]

/**
     *  Function will fail if aXPCOMErrorCode is not an NSS error code.
     *  @param aXPCOMErrorCode An error code obtained using getXPCOMFromNSSError
     *  return the error class of the code, either ERROR_CLASS_BAD_CERT
     *         or ERROR_CLASS_SSL_PROTOCOL
     */

[must_use] uint32_t getErrorClass (in nsresult aXPCOMErrorCode);

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

IID: nsIID = nsID(318111777, 57675, 16416, [153, 209, 237, 44, 121, 91, 230, 106])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsINSSErrorsService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.