[−][src]Enum shadowsocks::config::RedirType
Transparent Proxy type
Variants
For not supported platforms
For Linux-like systems' Netfilter REDIRECT. Only for TCP connections.
This is supported from Linux 2.4 Kernel. Document: https://www.netfilter.org/documentation/index.html#documentation-howto
NOTE: Filter rule REDIRECT can only be applied to TCP connections.
For Linux-like systems' Netfilter TPROXY rule.
NOTE: Filter rule TPROXY can be applied to TCP and UDP connections.
Implementations
impl RedirType[src]
pub fn tcp_default() -> RedirType[src]
Default TCP transparent proxy solution on this platform
pub fn udp_default() -> RedirType[src]
Default UDP transparent proxy solution on this platform
pub fn is_supported(self) -> bool[src]
Check if transparent proxy is supported on this platform
pub fn name(self) -> &'static str[src]
Name of redirect type (transparent proxy type)
pub fn available_types() -> Vec<&'static str>[src]
Get all available types
Trait Implementations
impl Clone for RedirType[src]
impl Copy for RedirType[src]
impl Debug for RedirType[src]
impl Display for RedirType[src]
impl Eq for RedirType[src]
impl FromStr for RedirType[src]
type Err = InvalidRedirType
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<RedirType, InvalidRedirType>[src]
impl IntoEnumIterator for RedirType[src]
type Iterator = RedirTypeIter
fn iter() -> RedirTypeIterⓘImportant traits for RedirTypeIter
impl Iterator for RedirTypeIter type Item = RedirType;[src]
Important traits for RedirTypeIter
impl Iterator for RedirTypeIter type Item = RedirType;impl PartialEq<RedirType> for RedirType[src]
impl StructuralEq for RedirType[src]
impl StructuralPartialEq for RedirType[src]
Auto Trait Implementations
impl RefUnwindSafe for RedirType
impl Send for RedirType
impl Sync for RedirType
impl Unpin for RedirType
impl UnwindSafe for RedirType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,