pub enum Error {
Show 13 variants
Unknown(String),
InvalidArgument(String),
FileIO(PathBuf, Error),
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),
}
Expand description
Errors that this library could produce.
Variants§
Unknown(String)
Something strange happened.
InvalidArgument(String)
You provided something bad.
FileIO(PathBuf, Error)
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.
CannotVerifyTreeData(String)
ConsistencyProofPart::verify failed
BadCertificate(String)
Something’s wrong with the certificate.
InvalidInclusionProof
Server returned an invalid inclusion proof.
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§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more