pub struct BS(/* private fields */);
Expand description
The stupidest Send box error ever.
It has From
implementations for some libstd error types,
you can derive From<E>
for your own error types
Implementations§
Trait Implementations§
Source§impl Error for BS
impl Error for BS
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<AddrParseError> for BS
impl From<AddrParseError> for BS
Source§fn from(e: AddrParseError) -> Self
fn from(e: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf16Error> for BS
impl From<FromUtf16Error> for BS
Source§fn from(e: FromUtf16Error) -> Self
fn from(e: FromUtf16Error) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for BS
impl From<FromUtf8Error> for BS
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseCharError> for BS
impl From<ParseCharError> for BS
Source§fn from(e: ParseCharError) -> Self
fn from(e: ParseCharError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for BS
impl From<ParseFloatError> for BS
Source§fn from(e: ParseFloatError) -> Self
fn from(e: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for BS
impl From<ParseIntError> for BS
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for BS
impl From<SystemTimeError> for BS
Source§fn from(e: SystemTimeError) -> Self
fn from(e: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for BS
impl From<TryFromIntError> for BS
Source§fn from(e: TryFromIntError) -> Self
fn from(e: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for BS
impl From<TryFromSliceError> for BS
Source§fn from(e: TryFromSliceError) -> Self
fn from(e: TryFromSliceError) -> Self
Converts to this type from the input type.
Source§impl From<TryRecvError> for BS
impl From<TryRecvError> for BS
Source§fn from(e: TryRecvError) -> Self
fn from(e: TryRecvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BS
impl !RefUnwindSafe for BS
impl Send for BS
impl Sync for BS
impl Unpin for BS
impl !UnwindSafe for BS
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