[][src]Enum keychain_services::ErrorKind

pub enum ErrorKind {
    AuthFailed,
    BufferTooSmall,
    CreateChainFailed,
    DataTooLarge,
    DataNotAvailable,
    DataNotModifiable,
    DuplicateCallback,
    DuplicateItem,
    DuplicateKeychain,
    InDarkWake,
    InteractionNotAllowed,
    InteractionRequired,
    InvalidCallback,
    InvalidItemRef,
    InvalidKeychain,
    InvalidPrefsDomain,
    InvalidSearchRef,
    ItemNotFound,
    KeySizeNotAllowed,
    MissingEntitlement,
    NoCertificateModule,
    NoDefaultKeychain,
    NoPolicyModule,
    NoStorageModule,
    NoSuchAttr,
    NoSuchClass,
    NoSuchKeychain,
    NotAvailable,
    ReadOnly,
    ReadOnlyAttr,
    WrongSecVersion,
    Io {
        kind: ErrorKind,
    },
    CFError {
        code: i64,
        domain: String,
    },
    Errno {
        code: u8,
    },
    OSError {
        code: i64,
    },
}

Kinds of errors.

Variants

Authentication and/or authorization failed.

Wrapper for the errSecAuthFailed status code. See: https://developer.apple.com/documentation/security/errsecauthfailed

Buffer is too small.

Wrapper for the errSecBufferTooSmall status code. See: https://developer.apple.com/documentation/security/errsecbuffertoosmall

Certificate chain creation attempt failed.

Wrapper for the errSecCreateChainFailed status code. See: https://developer.apple.com/documentation/security/errseccreatechainfailed

Data too large for the given data type.

Wrapper for the errSecDataTooLarge status code. See: https://developer.apple.com/documentation/security/errsecdatatoolarge

Data is not available.

Wrapper for the errSecDataNotAvailable status code. See: https://developer.apple.com/documentation/security/errsecdatanotavailable

Data cannot be modified.

Wrapper for the errSecDataNotModifiable status code. See: https://developer.apple.com/documentation/security/errsecdatanotmodifiable

Callback with the same name already exists.

Wrapper for the errSecDuplicateCallback status code. See: https://developer.apple.com/documentation/security/errsecduplicatecallback

Item already exists.

Wrapper for the errSecDuplicateItem status code. See: https://developer.apple.com/documentation/security/errsecduplicateitem

Keychain with the same name already exists.

Wrapper for the errSecDuplicateKeychain status code. See: https://developer.apple.com/documentation/security/errsecduplicatekeychain

System is in a dark wake state - user interface cannot be displayed.

Wrapper for the errSecInDarkWake status code. See: https://developer.apple.com/documentation/security/errsecindarkwake

Security Server interactions not allowed in this context.

Wrapper for the errSecInteractionNotAllowed status code. See: https://developer.apple.com/documentation/security/errsecinteractionnotallowed

User interaction required.

Wrapper for the errSecInteractionRequired status code. See: https://developer.apple.com/documentation/security/errsecinteractionrequired

Callback is invalid.

Wrapper for the errSecInvalidCallback status code. See: https://developer.apple.com/documentation/security/errsecinvalidcallback

Item reference is invalid.

Wrapper for the errSecInvalidItemRef status code. See: https://developer.apple.com/documentation/security/errsecinvaliditemref

Keychain is invalid.

Wrapper for the errSecInvalidKeychain status code. See: https://developer.apple.com/documentation/security/errsecinvalidkeychain

Specified preference domain is not valid.

Wrapper for the errSecInvalidPrefsDomain status code. See: https://developer.apple.com/documentation/security/errsecinvalidprefsdomain

Search reference is invalid.

Wrapper for the errSecInvalidSearchRef status code. See: https://developer.apple.com/documentation/security/errsecinvalidsearchref

Item could not be found.

Wrapper for the errSecItemNotFound status code. See: https://developer.apple.com/documentation/security/errsecitemnotfound

Invalid key size.

Wrapper for the errSecKeySizeNotAllowed status code. See: https://developer.apple.com/documentation/security/errseckeysizenotallowed

Required entitlement for accessing the keychain is missing. This error occurs when attempting to access certain keychain functionality from an application which is either unsigned or missing a required entitlement.

Wrapper for the errSecMissingEntitlement status code. See: https://developer.apple.com/documentation/security/errsecmissingentitlement

Certificate module unavailable.

Wrapper for the errSecNoCertificateModule status code. See: https://developer.apple.com/documentation/security/errsecnocertificatemodule

Default keychain does not exist.

Wrapper for the errSecNoDefaultKeychain status code. See: https://developer.apple.com/documentation/security/errsecnodefaultkeychain

Policy module unavailable.

Wrapper for the errSecNoPolicyModule status code. See: https://developer.apple.com/documentation/security/errsecnopolicymodule

Storage module unavailable.

Wrapper for the errSecNoStorageModule status code. See: https://developer.apple.com/documentation/security/errsecnostoragemodule

Specified attribute does not exist.

Wrapper for the errSecNoSuchAttr status code. See:; https://developer.apple.com/documentation/security/errsecnosuchattr

Specified keychain item class does not exist.

Wrapper for the errSecNoSuchClass status code. See: https://developer.apple.com/documentation/security/errsecnosuchclass

Specified keychain does not exist.

Wrapper for the errSecNoSuchKeychain status code. See: https://developer.apple.com/documentation/security/errsecnosuchkeychain

Trust results not available.

Wrapper for the errSecNotAvailable status code. See: https://developer.apple.com/documentation/security/errsecnotavailable

Can't perform given action on read-only item.

Wrapper for the errSecReadOnly status code. See: https://developer.apple.com/documentation/security/errsecreadonly

Can't perform action on read-only attribute

Wrapper for the errSecReadOnlyAttr status code. See: https://developer.apple.com/documentation/security/errsecreadonlyattr

Invalid version.

Wrapper for the errSecWrongSecVersion status code. See: https://developer.apple.com/documentation/security/errsecwrongversion

Input/output errors.

Wrapper for errno codes we know/commonly encounter.

Fields of Io

std::io::ErrorKind value representing the I/O error

Errors returned from CoreFoundation.

Codes correspond to the return value of the CFErrorGetCode function.

For more information, see: https://developer.apple.com/documentation/corefoundation/1494656-cferrorgetcode?language=objc

Fields of CFError

Code identifying this type of CFError.

See CFErrorGetCode() for more information: https://developer.apple.com/documentation/corefoundation/1494656-cferrorgetcode

Domain associated with this error.

See CFErrorGetDomain() for more information: https://developer.apple.com/documentation/corefoundation/1494657-cferrorgetdomain

Unix errno values we receive from the underlying OS

Fields of Errno

Raw errno value

OSStatus codes which we can't otherwise decode.

Fields of OSError

OS error code

Trait Implementations

impl From<*mut __CFError> for ErrorKind
[src]

Performs the conversion.

impl From<i32> for ErrorKind
[src]

Performs the conversion.

impl Clone for ErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ErrorKind
[src]

Formats the value using the given formatter. Read more

impl Display for ErrorKind
[src]

Formats the value using the given formatter. Read more

impl Fail for ErrorKind
[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> AsFail for T where
    T: Fail, 

Converts a reference to Self into a dynamic trait object of Fail.

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more