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) -> ControlResult
pub fn ack(self) -> ControlResult
Ack service error, return disconnect packet and close connection.
sourcepub fn ack_and_error(self) -> (ControlResult, E)
pub fn ack_and_error(self) -> (ControlResult, E)
Ack service error, return disconnect packet and close connection.