Enum strict_encoding::net::DecodeError [−][src]
#[non_exhaustive]
pub enum DecodeError {
UnknownAddrFormat,
UnknownTransport,
UnsupportedAddrFormat,
UnsupportedTransport,
InvalidAddr,
InvalidPubkey,
ExcessiveData,
InsufficientData,
}
Expand description
Uniform ecoding error types
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Unknown network address format
Unknown network transport protocol
Used address format is not supported by the software
Used transport protocol is not supported by the software
Network address raw data are corrupted and do not correspond to the encoding specification
Public key identifying network address is invalid
Data provided by the uniform-encoded network address does not fit target address structure
Data provided by the uniform-encoded network address does not sufficient for target address structure
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
Mutably borrows from an owned value. Read more