pub enum AdmitDecision {
Allow(Admitted),
Respond(HttpObjectResponse),
}Expand description
The admission verdict.
Variants§
Allow(Admitted)
Serve the content.
Respond(HttpObjectResponse)
Answer with this instead (a 402 challenge).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AdmitDecision
impl !RefUnwindSafe for AdmitDecision
impl !Sync for AdmitDecision
impl !UnwindSafe for AdmitDecision
impl Send for AdmitDecision
impl Unpin for AdmitDecision
impl UnsafeUnpin for AdmitDecision
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