pub enum HandlerAction {
Send {
written: u16,
close_after: bool,
},
SendStatic {
hdr_written: u32,
body: &'static [u8],
close_after: bool,
},
SendVectored {
iovs: [IoVec; 4],
iov_count: u8,
cookie: *const u8,
total_bytes: u32,
close_after: bool,
},
SendStream {
hdr_written: u32,
stream: Pin<Box<dyn ResponseChunkStream>>,
close_after: bool,
},
Pending(InlineFuture<'static, PendingResponse, 64>),
Close(&'static [u8]),
}Variants§
Send
SendStatic
SendVectored
SendStream
Pending(InlineFuture<'static, PendingResponse, 64>)
Close(&'static [u8])
Auto Trait Implementations§
impl Freeze for HandlerAction
impl !RefUnwindSafe for HandlerAction
impl !Send for HandlerAction
impl !Sync for HandlerAction
impl Unpin for HandlerAction
impl UnsafeUnpin for HandlerAction
impl !UnwindSafe for HandlerAction
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