[][src]Enum kync::ErrorKind

pub enum ErrorKind {
    InitializationError,
    BufferError {
        required_size: usize,
    },
    PermissionDenied {
        requires_authentication: bool,
    },
    AccessDenied {
        retries_left: Option<u64>,
    },
    IoError,
    InvalidData,
    NoKeyAvailable,
    OperationCancelled,
    OperationTimedOut,
    OtherPluginError {
        errno: u64,
    },
    Unsupported,
}

The error kind

Variants

InitializationError

A plugin could not initialize itself

BufferError

The provided buffer is too small and cannot be resized

Fields of BufferError

required_size: usize
PermissionDenied

An operation is not permitted (at least not without providing authentication data)

Fields of PermissionDenied

requires_authentication: bool
AccessDenied

An authentication error occurred (e.g. bad PIN, password etc.); if the amount of retries left is None, this means that there is no limit

Fields of AccessDenied

retries_left: Option<u64>
IoError

An IO-error occurred

InvalidData

Invalid data

NoKeyAvailable

There is no valid key available to decrypt the data

OperationCancelled

The operation was canceled by the user

OperationTimedOut

The operation timed out (e.g. took longer than 90s)

OtherPluginError

An unspecified plugin error occurred

Fields of OtherPluginError

errno: u64
Unsupported

The operation is unsupported

Trait Implementations

impl Eq for ErrorKind[src]

impl Clone for ErrorKind[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ErrorKind[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl From<ErrorKind> for KyncError[src]

impl Debug for ErrorKind[src]

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

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

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