pub struct ParseCloseReasonError;Expand description
Error returned when parsing a close reason string fails.
In practice this error is never returned because CloseReason::Unknown
catches all unrecognized strings, but the type exists to satisfy the
FromStr trait contract and project conventions.
Trait Implementations§
Source§impl Debug for ParseCloseReasonError
impl Debug for ParseCloseReasonError
Source§impl Display for ParseCloseReasonError
impl Display for ParseCloseReasonError
Source§impl Error for ParseCloseReasonError
impl Error for ParseCloseReasonError
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 ParseCloseReasonError
impl RefUnwindSafe for ParseCloseReasonError
impl Send for ParseCloseReasonError
impl Sync for ParseCloseReasonError
impl Unpin for ParseCloseReasonError
impl UnsafeUnpin for ParseCloseReasonError
impl UnwindSafe for ParseCloseReasonError
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