pub enum Locality {
Function,
Module,
SameCodebase,
SameMachine,
CrossMachine,
}Expand description
How far apart the pieces of code that reveal the vulnerability are.
Variants§
Function
Contained in one function.
Module
Contained in one module.
SameCodebase
Two modules within one code base must be reasoned about together.
SameMachine
Interaction between code bases sharing a process, site, or machine.
CrossMachine
Interaction between code bases on different processes, sites, or machines.
Implementations§
Trait Implementations§
impl Copy for Locality
impl Eq for Locality
Source§impl Ord for Locality
impl Ord for Locality
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Locality
impl PartialOrd for Locality
impl StructuralPartialEq for Locality
Auto Trait Implementations§
impl Freeze for Locality
impl RefUnwindSafe for Locality
impl Send for Locality
impl Sync for Locality
impl Unpin for Locality
impl UnsafeUnpin for Locality
impl UnwindSafe for Locality
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