pub enum MultiplexerError<SE: Debug> {
ChannelAdd(StreamId, ChannelId),
ChannelFull(ChannelId),
DuplicateChannel(ChannelId),
UnknownStream(StreamId),
UnknownChannel(ChannelId),
SendError(StreamId, SE),
}Expand description
Errors returned by Multiplexer.
Variants§
ChannelAdd(StreamId, ChannelId)
StreamId could not be added to ChannelId
ChannelFull(ChannelId)
The internal storage for streams in a channel is full.
DuplicateChannel(ChannelId)
ChannelId already exists and cannot be added again.
UnknownStream(StreamId)
StreamId is not recognized.
UnknownChannel(ChannelId)
ChannelId is not recognized.
SendError(StreamId, SE)
StreamId could not be sent to.
Trait Implementations§
Source§impl<SE> Display for MultiplexerError<SE>
impl<SE> Display for MultiplexerError<SE>
Source§impl<SE: Debug> Error for MultiplexerError<SE>
impl<SE: Debug> Error for MultiplexerError<SE>
1.30.0 · 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()
Auto Trait Implementations§
impl<SE> Freeze for MultiplexerError<SE>where
SE: Freeze,
impl<SE> RefUnwindSafe for MultiplexerError<SE>where
SE: RefUnwindSafe,
impl<SE> Send for MultiplexerError<SE>where
SE: Send,
impl<SE> Sync for MultiplexerError<SE>where
SE: Sync,
impl<SE> Unpin for MultiplexerError<SE>where
SE: Unpin,
impl<SE> UnwindSafe for MultiplexerError<SE>where
SE: UnwindSafe,
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