pub enum Stream {
Open(ConnectionError),
Sender(Sender),
}
Expand description
Error opening a new stream to peer with
Connection::open_stream
.
Variants§
Open(ConnectionError)
Opening a new stream with
Connection::open_stream
failed.
Sender(Sender)
Sending the type information to peer failed.
Trait Implementations§
§impl Error for Stream
impl Error for Stream
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<ConnectionError> for Stream
impl From<ConnectionError> for Stream
§fn from(source: ConnectionError) -> Stream
fn from(source: ConnectionError) -> Stream
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl !UnwindSafe for Stream
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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