pub enum SinkClass {
Command,
FilePath,
NetworkUrl,
DynamicExec,
}Expand description
The family of sink an argument flows into.
A sanitizer only neutralizes taint for the sink family it actually protects:
a path validator makes a value safe for a file sink but not for a network
sink, and a type coercion (str()/Number()) does not sanitize any
injection sink. Detectors pass the sink they guard so a Sanitized argument
is only treated as safe when its sanitizer category matches.
Variants§
Command
Shell/command execution.
FilePath
Filesystem path.
NetworkUrl
Network URL/host.
DynamicExec
Dynamic code execution (eval and friends).
Trait Implementations§
impl Copy for SinkClass
impl Eq for SinkClass
impl StructuralPartialEq for SinkClass
Auto Trait Implementations§
impl Freeze for SinkClass
impl RefUnwindSafe for SinkClass
impl Send for SinkClass
impl Sync for SinkClass
impl Unpin for SinkClass
impl UnsafeUnpin for SinkClass
impl UnwindSafe for SinkClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.