Enum libp2p_stream::OpenStreamError
source · #[non_exhaustive]pub enum OpenStreamError {
UnsupportedProtocol(StreamProtocol),
Io(Error),
}
Expand description
Errors while opening a new stream.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedProtocol(StreamProtocol)
The remote does not support the requested protocol.
Io(Error)
IO Error that occurred during the protocol handshake.
Trait Implementations§
source§impl Debug for OpenStreamError
impl Debug for OpenStreamError
source§impl Display for OpenStreamError
impl Display for OpenStreamError
Auto Trait Implementations§
impl !RefUnwindSafe for OpenStreamError
impl Send for OpenStreamError
impl Sync for OpenStreamError
impl Unpin for OpenStreamError
impl !UnwindSafe for OpenStreamError
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