[][src]Enum ctclient::Error

pub enum Error {
    Unknown(String),
    InvalidArgument(String),
    FileIO(PathBufError),
    NetIO(Error),
    InvalidSignature(String),
    InvalidResponseStatus(StatusCode),
    MalformedResponseBody(String),
    InvalidConsistencyProof {
        prev_size: u64,
        new_size: u64,
        desc: String,
    },
    CannotVerifyTreeData(String),
    BadCertificate(String),
    InvalidInclusionProof {
        tree_size: u64,
        leaf_index: u64,
        desc: String,
    },
    BadSct(String),
    ExpectedEntry(u64),
}

Errors that this library could produce.

Variants

Unknown(String)

Something strange happened.

InvalidArgument(String)

You provided something bad.

FileIO(PathBufError)

File IO error

NetIO(Error)

Network IO error

InvalidSignature(String)

The CT server provided us with invalid signature.

InvalidResponseStatus(StatusCode)

The CT server responded with something other than 200.

MalformedResponseBody(String)

Server responded with something bad (e.g. malformed JSON)

InvalidConsistencyProof

Server returned an invalid consistency proof.

Fields of InvalidConsistencyProof

prev_size: u64new_size: u64desc: String
CannotVerifyTreeData(String)

ConsistencyProofPart::verify failed

BadCertificate(String)

Something's wrong with the certificate.

InvalidInclusionProof

Server returned an invalid inclusion proof.

Fields of InvalidInclusionProof

tree_size: u64leaf_index: u64desc: String
BadSct(String)

A malformed SCT is given.

ExpectedEntry(u64)

We asked for a certain entry expecting it to be there, but the server gave us nothing.

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.