pub enum AlecError {
Encode(EncodeError),
Decode(DecodeError),
Context(ContextError),
Channel(ChannelError),
Protocol(String),
}Expand description
Main error type for ALEC operations
Variants§
Encode(EncodeError)
Encoding error
Decode(DecodeError)
Decoding error
Context(ContextError)
Context error
Channel(ChannelError)
Channel error
Protocol(String)
Protocol error
Trait Implementations§
Source§impl Error for AlecError
impl Error for AlecError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ChannelError> for AlecError
impl From<ChannelError> for AlecError
Source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
Source§impl From<ContextError> for AlecError
impl From<ContextError> for AlecError
Source§fn from(source: ContextError) -> Self
fn from(source: ContextError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for AlecError
impl From<DecodeError> for AlecError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for AlecError
impl From<EncodeError> for AlecError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for AlecError
Auto Trait Implementations§
impl Freeze for AlecError
impl RefUnwindSafe for AlecError
impl Send for AlecError
impl Sync for AlecError
impl Unpin for AlecError
impl UnsafeUnpin for AlecError
impl UnwindSafe for AlecError
Blanket Implementations§
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