pub enum ProtoError {
VersionDismatch {
expect: u8,
current: u8,
backtrace: Backtrace,
},
UnknownCommandType {
value: u8,
backtrace: Backtrace,
},
UnknownAddressType {
value: u8,
backtrace: Backtrace,
},
FailParseDomain {
raw: String,
source: Utf8Error,
backtrace: Backtrace,
},
DomainTooLong {
domain: String,
backtrace: Backtrace,
},
BytesRemaining,
Io {
source: Error,
backtrace: Backtrace,
},
NumericOverflow {
field: String,
num: String,
backtrace: Backtrace,
},
}Variants§
VersionDismatch
UnknownCommandType
UnknownAddressType
FailParseDomain
DomainTooLong
BytesRemaining
Io
NumericOverflow
Trait Implementations§
Source§impl Debug for ProtoError
impl Debug for ProtoError
Source§impl Display for ProtoError
impl Display for ProtoError
Source§impl Error for ProtoError
impl Error for ProtoError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ProtoError
impl ErrorCompat for ProtoError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<Error> for ProtoError
impl From<Error> for ProtoError
Source§impl From<ProtoError> for Error
impl From<ProtoError> for Error
Source§fn from(value: ProtoError) -> Self
fn from(value: ProtoError) -> Self
Converts to this type from the input type.
Source§impl<__T0, __T1> IntoError<ProtoError> for VersionDismatchSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<ProtoError> for VersionDismatchSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Source§impl<__T0> IntoError<ProtoError> for UnknownCommandTypeSnafu<__T0>
impl<__T0> IntoError<ProtoError> for UnknownCommandTypeSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Source§impl<__T0> IntoError<ProtoError> for UnknownAddressTypeSnafu<__T0>
impl<__T0> IntoError<ProtoError> for UnknownAddressTypeSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Source§impl<__T0> IntoError<ProtoError> for FailParseDomainSnafu<__T0>
impl<__T0> IntoError<ProtoError> for FailParseDomainSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Source§impl<__T0> IntoError<ProtoError> for DomainTooLongSnafu<__T0>
impl<__T0> IntoError<ProtoError> for DomainTooLongSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Source§impl IntoError<ProtoError> for BytesRemainingSnafu
impl IntoError<ProtoError> for BytesRemainingSnafu
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Source§impl IntoError<ProtoError> for IoSnafu
impl IntoError<ProtoError> for IoSnafu
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<ProtoError> for NumericOverflowSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<ProtoError> for NumericOverflowSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> ProtoError
fn into_error(self, error: Self::Source) -> ProtoError
Combine the information to produce the error
Auto Trait Implementations§
impl !Freeze for ProtoError
impl !RefUnwindSafe for ProtoError
impl !UnwindSafe for ProtoError
impl Send for ProtoError
impl Sync for ProtoError
impl Unpin for ProtoError
impl UnsafeUnpin for ProtoError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more