pub enum CensorshipMethod {
IpBlocking,
PortBlocking,
Dpi,
Throttling,
DnsPoisoning,
TcpReset,
ActiveProbing,
}Expand description
Types of censorship mechanisms.
Variants§
IpBlocking
Block by IP address.
PortBlocking
Block by destination port.
Dpi
Deep packet inspection for protocol signatures.
Throttling
Throttle bandwidth below usability.
DnsPoisoning
DNS poisoning / hijacking.
TcpReset
TCP RST injection.
ActiveProbing
Active probing to detect circumvention tools.
Trait Implementations§
Source§impl Clone for CensorshipMethod
impl Clone for CensorshipMethod
Source§fn clone(&self) -> CensorshipMethod
fn clone(&self) -> CensorshipMethod
Returns a duplicate 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 CensorshipMethod
impl Debug for CensorshipMethod
Source§impl<'de> Deserialize<'de> for CensorshipMethod
impl<'de> Deserialize<'de> for CensorshipMethod
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 PartialEq for CensorshipMethod
impl PartialEq for CensorshipMethod
Source§impl Serialize for CensorshipMethod
impl Serialize for CensorshipMethod
impl Copy for CensorshipMethod
impl Eq for CensorshipMethod
impl StructuralPartialEq for CensorshipMethod
Auto Trait Implementations§
impl Freeze for CensorshipMethod
impl RefUnwindSafe for CensorshipMethod
impl Send for CensorshipMethod
impl Sync for CensorshipMethod
impl Unpin for CensorshipMethod
impl UnsafeUnpin for CensorshipMethod
impl UnwindSafe for CensorshipMethod
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