pub struct Error<Err> { /* private fields */ }Expand description
Service level error
Implementations§
Source§impl<Err: ResponseError> Error<Err>
impl<Err: ResponseError> Error<Err>
Sourcepub fn ack<F>(self) -> ControlAck<F>
pub fn ack<F>(self) -> ControlAck<F>
Ack service error and close connection.
Sourcepub fn fail<E: ResponseError, F>(self, err: E) -> ControlAck<F>
pub fn fail<E: ResponseError, F>(self, err: E) -> ControlAck<F>
Fail error handling
Sourcepub fn fail_with<F>(self, res: Response) -> ControlAck<F>
pub fn fail_with<F>(self, res: Response) -> ControlAck<F>
Fail error handling
Trait Implementations§
Auto Trait Implementations§
impl<Err> Freeze for Error<Err>where
Err: Freeze,
impl<Err> !RefUnwindSafe for Error<Err>
impl<Err> !Send for Error<Err>
impl<Err> !Sync for Error<Err>
impl<Err> Unpin for Error<Err>where
Err: Unpin,
impl<Err> !UnwindSafe for Error<Err>
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