pub struct ProtocolError { /* private fields */ }Expand description
Protocol error with optional backtrace
Implementations§
Source§impl ProtocolError
impl ProtocolError
Sourcepub fn is_invalid_frame(&self) -> bool
pub fn is_invalid_frame(&self) -> bool
Check if this is an invalid frame error
Sourcepub fn is_unsupported_version(&self) -> bool
pub fn is_unsupported_version(&self) -> bool
Check if this is an unsupported version error
Trait Implementations§
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl UnwindSafe for ProtocolError
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