#[non_exhaustive]pub enum LeakKind {
Uncovered,
PartialBleed {
uncovered: Range<usize>,
},
ClassMismatch {
pipeline_class: PiiClass,
safety_net_class: PiiClass,
},
}Expand description
The category of a suspected missed PII span.
LeakKind is #[non_exhaustive]. Match with a wildcard for forward compatibility.
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.
Uncovered
No same-class emitted token overlaps the suspect span.
PartialBleed
The suspect is only partly covered; uncovered is the first gap.
ClassMismatch
The suspect is continuously covered, but by a different class.
Trait Implementations§
impl Eq for LeakKind
impl StructuralPartialEq for LeakKind
Auto Trait Implementations§
impl Freeze for LeakKind
impl RefUnwindSafe for LeakKind
impl Send for LeakKind
impl Sync for LeakKind
impl Unpin for LeakKind
impl UnsafeUnpin for LeakKind
impl UnwindSafe for LeakKind
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