pub enum ControlChannelError {
ReadControl(ReadControlError),
CannotSend,
}
Expand description
Error associated with ChannelExtcapControlReader
.
Variants§
ReadControl(ReadControlError)
Error returned when the control packet cannot be read. See
the docs on ReadControlError
.
CannotSend
Error returned when the control packet cannot be sent on the channel.
This is caused by an underlying SendError
.
Trait Implementations§
Source§impl Debug for ControlChannelError
impl Debug for ControlChannelError
Source§impl Display for ControlChannelError
impl Display for ControlChannelError
Source§impl Error for ControlChannelError
impl Error for ControlChannelError
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<ReadControlError> for ControlChannelError
impl From<ReadControlError> for ControlChannelError
Source§fn from(source: ReadControlError) -> Self
fn from(source: ReadControlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControlChannelError
impl !RefUnwindSafe for ControlChannelError
impl Send for ControlChannelError
impl Sync for ControlChannelError
impl Unpin for ControlChannelError
impl !UnwindSafe for ControlChannelError
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