pub enum SafetyMode {
TestStrings(Vec<String>),
CostVerdict {
max_content_length: Option<usize>,
},
}Expand description
Which validation run to perform (the reference’s two modes).
Variants§
TestStrings(Vec<String>)
Search the given strings under the per-string threshold after the
structural check (reference test_strings argument).
CostVerdict
Synthesize probes and arbitrate extrapolated cost (reference
max_content_length argument).
Trait Implementations§
Source§impl Clone for SafetyMode
impl Clone for SafetyMode
Source§impl Debug for SafetyMode
impl Debug for SafetyMode
Source§impl PartialEq for SafetyMode
impl PartialEq for SafetyMode
impl StructuralPartialEq for SafetyMode
Auto Trait Implementations§
impl Freeze for SafetyMode
impl RefUnwindSafe for SafetyMode
impl Send for SafetyMode
impl Sync for SafetyMode
impl Unpin for SafetyMode
impl UnsafeUnpin for SafetyMode
impl UnwindSafe for SafetyMode
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