pub struct GenericSendError { /* 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 GenericSendError
impl GenericSendError
pub fn new<T>(error: SendError<T>) -> GenericSendErrorwhere
T: Send + 'static,
Trait Implementations§
Source§impl Debug for GenericSendError
impl Debug for GenericSendError
Source§impl Display for GenericSendError
impl Display for GenericSendError
Source§impl Error for GenericSendError
impl Error for GenericSendError
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<GenericSendError> for TransportError
impl From<GenericSendError> for TransportError
Source§fn from(source: GenericSendError) -> TransportError
fn from(source: GenericSendError) -> TransportError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenericSendError
impl !RefUnwindSafe for GenericSendError
impl Send for GenericSendError
impl !Sync for GenericSendError
impl Unpin for GenericSendError
impl !UnwindSafe for GenericSendError
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