Enum matchbox_socket::ChannelError
source · pub enum ChannelError {
NotFound,
Taken,
Closed,
}
Expand description
An error that can occur when getting a socket’s channel through
get_channel
, take_channel
or try_update_peers
.
Variants§
NotFound
Can occur if trying to get a channel with an Id that was not added while building the socket
Taken
The channel has already been taken and is no longer on the socket
Closed
Channel might have been opened but later closed, or never opened in the first place.
The latter can for example occur when an one calls try_update_peers
on a socket that was
given an invalid room URL.
Trait Implementations§
source§impl Debug for ChannelError
impl Debug for ChannelError
source§impl Display for ChannelError
impl Display for ChannelError
source§impl Error for ChannelError
impl Error for ChannelError
1.30.0 · source§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()
Auto Trait Implementations§
impl RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl UnwindSafe for ChannelError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§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