[][src]Enum carrier::error::Error

pub enum Error {
    Io(Error),
    Snow(SnowError),
    Bs58(DecodeError),
    Ed25519(SignatureError),
    Dns(Error),
    Proto(DecodeError),
    Fmt(Error),
    InvalidLen,
    InvalidAddress,
    InvalidAddressType {
        need: String,
        got: String,
    },
    TooSmall {
        need: usize,
        got: usize,
    },
    PktMisaligned {
        len: usize,
    },
    DecryptedInvalidPayloadLen,
    PayloadUnencrypted,
    WrongRoute {
        dest: RoutingKey,
        this: RoutingKey,
    },
    WrongDirection {
        dir: RoutingDirection,
    },
    InvalidCookie,
    InvalidVersion {
        version: u8,
    },
    InvalidFrameType {
        typ: u8,
    },
    Underflow {
        prev: u64,
        this: u64,
    },
    Overflow,
    AntiReplay,
    NoSecrets,
    SecretsfileAlreadyExists,
    OutOfOptions,
    SecurityViolation,
    BrokenChain,
    DelegationDenied,
    AccessDenied,
    NoMatchingGrant,
    OutgoingConnectFailed {
        identity: Identity,
        cr: Option<ConnectResponse>,
    },
}

Variants

Io(Error)Snow(SnowError)Bs58(DecodeError)Ed25519(SignatureError)Dns(Error)Proto(DecodeError)Fmt(Error)InvalidLenInvalidAddressInvalidAddressType

Fields of InvalidAddressType

need: Stringgot: String
TooSmall

Fields of TooSmall

need: usizegot: usize
PktMisaligned

Fields of PktMisaligned

len: usize
DecryptedInvalidPayloadLenPayloadUnencryptedWrongRoute

Fields of WrongRoute

dest: RoutingKeythis: RoutingKey
WrongDirection

Fields of WrongDirection

dir: RoutingDirection
InvalidCookieInvalidVersion

Fields of InvalidVersion

version: u8
InvalidFrameType

Fields of InvalidFrameType

typ: u8
Underflow

Fields of Underflow

prev: u64this: u64
OverflowAntiReplayNoSecretsSecretsfileAlreadyExistsOutOfOptionsSecurityViolationBrokenChainDelegationDeniedAccessDeniedNoMatchingGrantOutgoingConnectFailed

Fields of OutgoingConnectFailed

identity: Identitycr: Option<ConnectResponse>

Trait Implementations

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<DecodeError> for Error[src]

impl From<SnowError> for Error[src]

impl From<SignatureError> for Error[src]

impl From<Error> for Error[src]

impl From<DecodeError> for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

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

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

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]

impl<T> Same for T

type Output = T

Should always be Self