Enum libp2p_pnet::KeyParseError [−][src]
pub enum KeyParseError {
InvalidKeyFile,
InvalidKeyType,
InvalidKeyEncoding,
InvalidKeyLength,
InvalidKeyChar(ParseIntError),
}
Expand description
Error when parsing a PreSharedKey
Variants
file does not have the expected structure
unsupported key type
unsupported key encoding. Currently only base16 is supported
Key is of the wrong length
InvalidKeyChar(ParseIntError)
key string contains a char that is not consistent with the specified encoding
Tuple Fields of InvalidKeyChar
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for KeyParseError
impl Send for KeyParseError
impl Sync for KeyParseError
impl Unpin for KeyParseError
impl UnwindSafe for KeyParseError
Blanket Implementations
Mutably borrows from an owned value. Read more