pub struct Error<E> { /* private fields */ }Expand description
Service level error
Implementations§
source§impl<E> Error<E>
 
impl<E> Error<E>
pub fn new(err: E) -> Self
sourcepub fn ack(self) -> ControlAck
 
pub fn ack(self) -> ControlAck
Ack service error, return disconnect packet and close connection.
sourcepub fn ack_and_error(self) -> (ControlAck, E)
 
pub fn ack_and_error(self) -> (ControlAck, E)
Ack service error, return disconnect packet and close connection.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
    E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
    E: RefUnwindSafe,
impl<E> Send for Error<E>where
    E: Send,
impl<E> Sync for Error<E>where
    E: Sync,
impl<E> Unpin for Error<E>where
    E: Unpin,
impl<E> UnwindSafe for Error<E>where
    E: UnwindSafe,
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