pub enum InputAdmitDecision {
Admit,
Modify(Vec<Item>),
Reject(String),
}Expand description
InputHooks::before_input_admit decision.
Variants§
Admit
Admit the claimed batch unchanged.
Modify(Vec<Item>)
Replace the claimed batch before append.
Reject(String)
Permanently discard the claimed batch with a reason.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputAdmitDecision
impl RefUnwindSafe for InputAdmitDecision
impl Send for InputAdmitDecision
impl Sync for InputAdmitDecision
impl Unpin for InputAdmitDecision
impl UnsafeUnpin for InputAdmitDecision
impl UnwindSafe for InputAdmitDecision
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