pub struct DisconnectError<C> {
pub channel: C,
pub error: TryLockError,
}Expand description
Errors that can occur when trying to disconnect a channel
Fields§
§channel: CThe original channel
error: TryLockErrorDescription of the error that occurred
Trait Implementations§
Source§impl<C> Debug for DisconnectError<C>
impl<C> Debug for DisconnectError<C>
Source§impl<C> Display for DisconnectError<C>
impl<C> Display for DisconnectError<C>
Source§impl<C> Error for DisconnectError<C>
impl<C> Error for DisconnectError<C>
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<C> Freeze for DisconnectError<C>where
C: Freeze,
impl<C> RefUnwindSafe for DisconnectError<C>where
C: RefUnwindSafe,
impl<C> Send for DisconnectError<C>where
C: Send,
impl<C> Sync for DisconnectError<C>where
C: Sync,
impl<C> Unpin for DisconnectError<C>where
C: Unpin,
impl<C> UnsafeUnpin for DisconnectError<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for DisconnectError<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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