#[non_exhaustive]pub enum ReceiverError {
NoSubscriptions,
ChannelClosed,
}
Expand description
An error encountered when trying to receive a TorEvent
.
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.
NoSubscriptions
The receiver isn’t subscribed to anything, so wouldn’t ever return any events.
ChannelClosed
The internal broadcast channel was closed, which shouldn’t ever happen.
Trait Implementations§
Source§impl Clone for ReceiverError
impl Clone for ReceiverError
Source§fn clone(&self) -> ReceiverError
fn clone(&self) -> ReceiverError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ReceiverError
impl Debug for ReceiverError
Source§impl Display for ReceiverError
impl Display for ReceiverError
Source§impl Error for ReceiverError
impl Error for ReceiverError
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 Freeze for ReceiverError
impl RefUnwindSafe for ReceiverError
impl Send for ReceiverError
impl Sync for ReceiverError
impl Unpin for ReceiverError
impl UnwindSafe for ReceiverError
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