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
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 KeyParseErrorimpl Send for KeyParseErrorimpl Sync for KeyParseErrorimpl Unpin for KeyParseErrorimpl UnwindSafe for KeyParseErrorBlanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)Converts a reference to Self into a dynamic trait object of Fail.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V