#[non_exhaustive]pub enum Error {
}Expand description
Failures of ids, key material and the trust store. No message holds key material or a path.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidId
A PeerId is malformed.
WeakDigest
An id is an MD5 digest, which is not supported.
UnknownDigest(String)
A digest name is unknown. The variant carries the name; Display does not quote it.
Material
Stored key material is malformed, too large, or does not hash to its id.
NotWaiting
The peer is not waiting for acceptance.
AlreadyAccepted
The peer was already accepted.
NotAccepted
The peer is not accepted, or its key is retiring.
NoSuccessor
The key is not the pending successor of an accepted key.
SuccessorTaken
The key is the pending successor another accepted key announced.
NotProven
Nobody proved the successor’s key, and the rotation options require it.
NotInvited
No open invitation has this secret: it never existed, was used up or was revoked.
Expired
The invitation or code expired.
InvalidOptions
An option has no meaning: an invitation label that is not one line, zero uses or validity, an empty code alphabet, a repeated character, length 0.
InvalidCode
A code holds a character outside its alphabet, or has the wrong length.
Random
The random source failed.
Io(Error)
A filesystem or stream operation failed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()