pub enum ReceiveError {
Channel(RecvError),
Timeout(Elapsed),
Cancelled,
}
Variants§
Trait Implementations§
Source§impl Debug for ReceiveError
impl Debug for ReceiveError
Source§impl Display for ReceiveError
impl Display for ReceiveError
Source§impl Error for ReceiveError
impl Error for ReceiveError
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()
Source§impl FlatError for ReceiveError
impl FlatError for ReceiveError
fn error_variant(&self) -> &'static str
Source§impl From<Elapsed> for ReceiveError
impl From<Elapsed> for ReceiveError
Source§impl From<ReceiveError> for JsValue
impl From<ReceiveError> for JsValue
Source§fn from(error: ReceiveError) -> Self
fn from(error: ReceiveError) -> Self
Converts to this type from the input type.
Source§impl From<ReceiveError> for TypedReceiveError
impl From<ReceiveError> for TypedReceiveError
Source§fn from(value: ReceiveError) -> Self
fn from(value: ReceiveError) -> Self
Converts to this type from the input type.
Source§impl From<RecvError> for ReceiveError
impl From<RecvError> for ReceiveError
Source§impl PartialEq for ReceiveError
impl PartialEq for ReceiveError
impl Eq for ReceiveError
impl StructuralPartialEq for ReceiveError
Auto Trait Implementations§
impl Freeze for ReceiveError
impl RefUnwindSafe for ReceiveError
impl Send for ReceiveError
impl Sync for ReceiveError
impl Unpin for ReceiveError
impl UnwindSafe for ReceiveError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.