#[non_exhaustive]
pub enum Error {
DataLessThanLen,
InvalidMultiaddr,
InvalidProtocolString,
InvalidUvar(Error),
ParsingError(Box<dyn Error + Send + Sync + 'static, Global>),
UnknownProtocolId(u32),
UnknownProtocolString(String),
}
Expand description
Error types
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DataLessThanLen
InvalidMultiaddr
InvalidProtocolString
InvalidUvar(Error)
ParsingError(Box<dyn Error + Send + Sync + 'static, Global>)
UnknownProtocolId(u32)
UnknownProtocolString(String)
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.