[][src]Enum elgamal_curve25519::Error

pub enum Error {
    IO {
        msg: String,
        source: Option<Box<dyn Error + 'static>>,
    },
    Scalar {
        msg: String,
        source: Option<Box<dyn Error + 'static>>,
    },
    PrivateKey {
        msg: String,
        source: Option<Box<dyn Error + 'static>>,
    },
    PublicKey {
        msg: String,
        source: Option<Box<dyn Error + 'static>>,
    },
    Keys {
        msg: String,
        source: Option<Box<dyn Error + 'static>>,
    },
    SharedSecret {
        msg: String,
        source: Option<Box<dyn Error + 'static>>,
    },
    Message {
        msg: String,
        source: Option<Box<dyn Error + 'static>>,
    },
    CypherText {
        msg: String,
        source: Option<Box<dyn Error + 'static>>,
    },
}

Error is the library error type.

Variants

IO

Fields of IO

msg: Stringsource: Option<Box<dyn Error + 'static>>
Scalar

Fields of Scalar

msg: Stringsource: Option<Box<dyn Error + 'static>>
PrivateKey

Fields of PrivateKey

msg: Stringsource: Option<Box<dyn Error + 'static>>
PublicKey

Fields of PublicKey

msg: Stringsource: Option<Box<dyn Error + 'static>>
Keys

Fields of Keys

msg: Stringsource: Option<Box<dyn Error + 'static>>
SharedSecret

Fields of SharedSecret

msg: Stringsource: Option<Box<dyn Error + 'static>>
Message

Fields of Message

msg: Stringsource: Option<Box<dyn Error + 'static>>
CypherText

Fields of CypherText

msg: Stringsource: Option<Box<dyn Error + 'static>>

Trait Implementations

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> From<T> for T[src]

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Same<T> for T[src]

type Output = T

Should always be Self