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.
Trait Implementations§
Auto Trait Implementations§
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