pub enum ServiceResult {
Response(Response),
Consumed,
}Expand description
The outcome of the application’s request handling.
Variants§
Response(Response)
A standard HTTP response. The Connection Handler will serialize and write this.
Consumed
The Service has taken ownership of the TcpStream (e.g., for WebSockets).
The Connection Handler must terminate its loop immediately.
Auto Trait Implementations§
impl !Freeze for ServiceResult
impl RefUnwindSafe for ServiceResult
impl Send for ServiceResult
impl Sync for ServiceResult
impl Unpin for ServiceResult
impl UnwindSafe for ServiceResult
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