Enum tor_config::PaddingLevel
source · pub enum PaddingLevel {
None,
Reduced,
Normal,
}
Expand description
Padding enablement - rough amount of padding requested
Padding is cover traffic, used to help mitigate traffic analysis, obscure traffic patterns, and impede router-level data collection.
This same enum is used to control padding at various levels of the Tor system. (TODO: actually we don’t do circuit padding yet.)
Variants§
None
Disable padding completely
Reduced
Reduced padding (eg for mobile)
Normal
Normal padding (the default)
Trait Implementations§
source§impl Clone for PaddingLevel
impl Clone for PaddingLevel
source§fn clone(&self) -> PaddingLevel
fn clone(&self) -> PaddingLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PaddingLevel
impl Debug for PaddingLevel
source§impl Default for PaddingLevel
impl Default for PaddingLevel
source§impl<'de> Deserialize<'de> for PaddingLevel
impl<'de> Deserialize<'de> for PaddingLevel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PaddingLevel
impl Display for PaddingLevel
source§impl<'_derivative_strum> From<&'_derivative_strum PaddingLevel> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum PaddingLevel> for &'static str
source§fn from(x: &'_derivative_strum PaddingLevel) -> &'static str
fn from(x: &'_derivative_strum PaddingLevel) -> &'static str
Converts to this type from the input type.
source§impl From<PaddingLevel> for &'static str
impl From<PaddingLevel> for &'static str
source§fn from(x: PaddingLevel) -> &'static str
fn from(x: PaddingLevel) -> &'static str
Converts to this type from the input type.
source§impl FromStr for PaddingLevel
impl FromStr for PaddingLevel
source§impl Hash for PaddingLevel
impl Hash for PaddingLevel
source§impl Ord for PaddingLevel
impl Ord for PaddingLevel
source§fn cmp(&self, other: &PaddingLevel) -> Ordering
fn cmp(&self, other: &PaddingLevel) -> Ordering
1.21.0 · 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
source§impl PartialEq for PaddingLevel
impl PartialEq for PaddingLevel
source§fn eq(&self, other: &PaddingLevel) -> bool
fn eq(&self, other: &PaddingLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PaddingLevel
impl PartialOrd for PaddingLevel
source§fn partial_cmp(&self, other: &PaddingLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &PaddingLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PaddingLevel
impl Serialize for PaddingLevel
source§impl TryFrom<&str> for PaddingLevel
impl TryFrom<&str> for PaddingLevel
impl Copy for PaddingLevel
impl Eq for PaddingLevel
impl StructuralEq for PaddingLevel
impl StructuralPartialEq for PaddingLevel
Auto Trait Implementations§
impl RefUnwindSafe for PaddingLevel
impl Send for PaddingLevel
impl Sync for PaddingLevel
impl Unpin for PaddingLevel
impl UnwindSafe for PaddingLevel
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.