pub struct AnyConnectionError(pub String);Expand description
Error returned by AnyConnection::connect and
AnyConnection::recv_and_dispatch. Draft-specific errors are flattened
to strings so callers don’t have to branch on draft to inspect errors.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for AnyConnectionError
impl Debug for AnyConnectionError
Source§impl Display for AnyConnectionError
impl Display for AnyConnectionError
Source§impl Error for AnyConnectionError
impl Error for AnyConnectionError
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()
Auto Trait Implementations§
impl Freeze for AnyConnectionError
impl RefUnwindSafe for AnyConnectionError
impl Send for AnyConnectionError
impl Sync for AnyConnectionError
impl Unpin for AnyConnectionError
impl UnsafeUnpin for AnyConnectionError
impl UnwindSafe for AnyConnectionError
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