[][src]Enum cloudfront_policy_signer::Error

pub enum Error {
    IOError(SysIOError),
    PrivateKeyParseError,
    PrivateKeyConvertError,
    CouldNotSign,
    Unknown,
}

Enumeration of all possible errors returned by the crate

Variants

IOError(SysIOError)

We received an IO error from the operating system. Refer to std::io::Error for more information

PrivateKeyParseError

The private key was in an unsupported format or somehow malformed. It only accepts keys in PEM-encoded PKCS#1

PrivateKeyConvertError

The key could not be converted from a openssl::rsa::Rsa<openssl::pkey::Private> to a PKey<Private>

CouldNotSign

The policy could not be signed. Refer to the error printed out in the logs

Unknown

Blanket error for all errors from OpenSSL that should not occur, but can due to it being written in unsafe C.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

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

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

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.