pub struct HandlerResponse {
pub data: Vec<u8>,
pub close: bool,
pub post_send: Option<Box<dyn FnOnce() + Send + Sync>>,
}
Available on Unix only.
Fields§
§data: Vec<u8>
The response body.
close: bool
If the communication should be closed.
post_send: Option<Box<dyn FnOnce() + Send + Sync>>
A function to run after sending the response.
Auto Trait Implementations§
impl Freeze for HandlerResponse
impl !RefUnwindSafe for HandlerResponse
impl Send for HandlerResponse
impl Sync for HandlerResponse
impl Unpin for HandlerResponse
impl !UnwindSafe for HandlerResponse
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