pub struct Reply {
pub status: u16,
pub headers: Vec<(String, String)>,
pub chunks: Vec<Vec<u8>>,
pub delay: Duration,
pub fail_after_chunks: Option<usize>,
}Expand description
A response generated by a handler. Body chunks are delivered only when the reader asks.
Fields§
§status: u16§headers: Vec<(String, String)>§chunks: Vec<Vec<u8>>§delay: Duration§fail_after_chunks: Option<usize>Fail instead of completing, after this many body chunks (zero fails before the head).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Reply
impl Freeze for Reply
impl Move for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
impl UnwindSafe for Reply
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