pub struct GenericWatchSendError { /* private fields */ }
Expand description
A wrapper around a broadcast send error. This structure allows for generic error handling by boxing the underlying error into a type-erased form.
Implementations§
Source§impl GenericWatchSendError
impl GenericWatchSendError
pub fn new<T>(error: SendError<T>) -> GenericWatchSendErrorwhere
T: Send + 'static,
Trait Implementations§
Source§impl Debug for GenericWatchSendError
impl Debug for GenericWatchSendError
Source§impl Display for GenericWatchSendError
impl Display for GenericWatchSendError
Source§impl Error for GenericWatchSendError
impl Error for GenericWatchSendError
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()
Source§impl From<GenericWatchSendError> for TransportError
impl From<GenericWatchSendError> for TransportError
Source§fn from(source: GenericWatchSendError) -> TransportError
fn from(source: GenericWatchSendError) -> TransportError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenericWatchSendError
impl !RefUnwindSafe for GenericWatchSendError
impl Send for GenericWatchSendError
impl !Sync for GenericWatchSendError
impl Unpin for GenericWatchSendError
impl !UnwindSafe for GenericWatchSendError
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