pub enum CoordChanError {
UnknownSid,
PeerClosed,
StreamPoll(Error),
Sink(SinkError),
WrongMessage(ControlMsg),
SendCoordEvent(SendError),
EndOfBiStream,
AcceptBiStream(ConnectionError),
OpenBiStream(ConnectionError),
EventsClosed,
}Expand description
Coordinator channel driver errors
Variants§
UnknownSid
Received a request for an unknown stream-id
PeerClosed
Peer closed connection
StreamPoll(Error)
Polling the control channel failed
Sink(SinkError)
Writing to the control channel failed
WrongMessage(ControlMsg)
Client sent an unexpected message
SendCoordEvent(SendError)
Writing to master Coord driver failed
EndOfBiStream
Transport unexpectedly stopped delivering new streams
AcceptBiStream(ConnectionError)
Error while accepting new stream from transport
OpenBiStream(ConnectionError)
Error while opening new transport stream
EventsClosed
Events channel closed
Trait Implementations§
Source§impl Debug for CoordChanError
impl Debug for CoordChanError
Source§impl Display for CoordChanError
impl Display for CoordChanError
Source§impl Error for CoordChanError
impl Error for CoordChanError
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 From<ConnectionError> for CoordChanError
impl From<ConnectionError> for CoordChanError
Source§fn from(from: ConnectionError) -> Self
fn from(from: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<CoordChanError> for Error
impl From<CoordChanError> for Error
Source§fn from(err: CoordChanError) -> Self
fn from(err: CoordChanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for CoordChanError
impl !RefUnwindSafe for CoordChanError
impl Send for CoordChanError
impl Sync for CoordChanError
impl Unpin for CoordChanError
impl UnsafeUnpin for CoordChanError
impl !UnwindSafe for CoordChanError
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