pub struct ConnectionError { /* private fields */ }Expand description
Protocol level error
Implementations§
Source§impl ConnectionError
impl ConnectionError
pub fn new(err: ConnectionError) -> Self
Sourcepub fn get_ref(&self) -> &ConnectionError
pub fn get_ref(&self) -> &ConnectionError
Returns reference to a protocol error
Sourcepub fn ack(self) -> ControlAck
pub fn ack(self) -> ControlAck
Ack protocol error, return disconnect packet and close connection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
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