#[non_exhaustive]pub enum EnforcingPolicy {
AllContent,
PerDocument,
}Expand description
Scope over which YAML budget counters are enforced.
Single-document and whole-input entry points use EnforcingPolicy::AllContent.
Streaming reader iterators use EnforcingPolicy::PerDocument so an arbitrarily long
stream can be processed while each document remains bounded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AllContent
Apply one set of counters to the complete input stream.
PerDocument
Reset applicable counters for every YAML document.
Trait Implementations§
Source§impl Clone for EnforcingPolicy
impl Clone for EnforcingPolicy
Source§fn clone(&self) -> EnforcingPolicy
fn clone(&self) -> EnforcingPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EnforcingPolicy
Source§impl Debug for EnforcingPolicy
impl Debug for EnforcingPolicy
impl Eq for EnforcingPolicy
Source§impl PartialEq for EnforcingPolicy
impl PartialEq for EnforcingPolicy
impl StructuralPartialEq for EnforcingPolicy
Auto Trait Implementations§
impl Freeze for EnforcingPolicy
impl RefUnwindSafe for EnforcingPolicy
impl Send for EnforcingPolicy
impl Sync for EnforcingPolicy
impl Unpin for EnforcingPolicy
impl UnsafeUnpin for EnforcingPolicy
impl UnwindSafe for EnforcingPolicy
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