pub struct Admitted {
pub private: bool,
pub headers: Vec<(&'static str, String)>,
pub on_end: Option<EndHook>,
}Expand description
What an admitted read adds to its 200 or 206.
Fields§
§private: boolSuccess means the response is private (§5.3).
headers: Vec<(&'static str, String)>Passthrough headers such as Payment-Receipt.
on_end: Option<EndHook>Called once when the body ends (ReadServed{bytes}), also for a HEAD
with zero bytes.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Admitted
impl !Sync for Admitted
impl !UnwindSafe for Admitted
impl Freeze for Admitted
impl Send for Admitted
impl Unpin for Admitted
impl UnsafeUnpin for Admitted
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