pub enum TypedReceiveError {
Channel(RecvError),
Timeout(Elapsed),
Cancelled,
Typing(String),
}
Variants§
Trait Implementations§
Source§impl Debug for TypedReceiveError
impl Debug for TypedReceiveError
Source§impl Display for TypedReceiveError
impl Display for TypedReceiveError
Source§impl Error for TypedReceiveError
impl Error for TypedReceiveError
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 TypedReceiveError
impl FlatError for TypedReceiveError
fn error_variant(&self) -> &'static str
Source§impl From<Elapsed> for TypedReceiveError
impl From<Elapsed> for TypedReceiveError
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 TypedReceiveError
impl From<RecvError> for TypedReceiveError
Source§impl From<TypedReceiveError> for JsValue
impl From<TypedReceiveError> for JsValue
Source§fn from(error: TypedReceiveError) -> Self
fn from(error: TypedReceiveError) -> Self
Converts to this type from the input type.
Source§impl From<TypedReceiveError> for RequestError
impl From<TypedReceiveError> for RequestError
Source§fn from(source: TypedReceiveError) -> Self
fn from(source: TypedReceiveError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TypedReceiveError
impl PartialEq for TypedReceiveError
impl Eq for TypedReceiveError
impl StructuralPartialEq for TypedReceiveError
Auto Trait Implementations§
impl Freeze for TypedReceiveError
impl RefUnwindSafe for TypedReceiveError
impl Send for TypedReceiveError
impl Sync for TypedReceiveError
impl Unpin for TypedReceiveError
impl UnwindSafe for TypedReceiveError
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.