pub enum ConnectingStreamError {
Event,
Coord,
StreamId,
InitMsg(Error),
Flush(Error),
OpenBi(ConnectionError),
Canceled(Canceled),
NoSuchPeer(String),
InitStream(Error),
}
Expand description
Error variant output by ConnectingStream future
Variants§
Event
Error injecting event
Coord
Coordinator sent us an error
StreamId
Reused stream id
InitMsg(Error)
Failed to send initial message
Flush(Error)
Failed to flush initial message
OpenBi(ConnectionError)
Failed to open bidirectional channel
Canceled(Canceled)
Opening channel was canceled
NoSuchPeer(String)
OutStream requested for invalid peer name
InitStream(Error)
Failed to initialize stream
Trait Implementations§
Source§impl Debug for ConnectingStreamError
impl Debug for ConnectingStreamError
Source§impl Display for ConnectingStreamError
impl Display for ConnectingStreamError
Source§impl Error for ConnectingStreamError
impl Error for ConnectingStreamError
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<Canceled> for ConnectingStreamError
impl From<Canceled> for ConnectingStreamError
Source§impl From<ConnectingStreamError> for Error
impl From<ConnectingStreamError> for Error
Source§fn from(err: ConnectingStreamError) -> Self
fn from(err: ConnectingStreamError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for ConnectingStreamError
impl From<ConnectionError> for ConnectingStreamError
Source§fn from(from: ConnectionError) -> Self
fn from(from: ConnectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ConnectingStreamError
impl !RefUnwindSafe for ConnectingStreamError
impl Send for ConnectingStreamError
impl Sync for ConnectingStreamError
impl Unpin for ConnectingStreamError
impl !UnwindSafe for ConnectingStreamError
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