pub enum ListenerType {
Or,
Dir,
Socks,
Trans,
Natd,
Dns,
Control,
ExtOr,
HttpTunnel,
}Expand description
Types of listeners that Tor can have.
These correspond to the different types of connections that Tor handles, each configured via different torrc options.
§Example
use stem::controller::ListenerType;
let listener = ListenerType::Socks;
assert_eq!(listener.to_string(), "socks");Variants§
Or
Traffic we’re relaying as a member of the network (ORPort)
Dir
Mirroring for tor descriptor content (DirPort)
Socks
Client traffic we’re sending over Tor (SocksPort)
Trans
Transparent proxy handling (TransPort)
Natd
Forwarding for ipfw NATD connections (NatdPort)
Dns
DNS lookups for our traffic (DNSPort)
Control
Controller applications (ControlPort)
ExtOr
Pluggable transport for Extended ORPorts (ExtORPort)
HttpTunnel
HTTP tunneling proxy (HTTPTunnelPort)
Trait Implementations§
Source§impl Clone for ListenerType
impl Clone for ListenerType
Source§fn clone(&self) -> ListenerType
fn clone(&self) -> ListenerType
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 ListenerType
impl Debug for ListenerType
Source§impl Display for ListenerType
impl Display for ListenerType
Source§impl Hash for ListenerType
impl Hash for ListenerType
Source§impl PartialEq for ListenerType
impl PartialEq for ListenerType
impl Copy for ListenerType
impl Eq for ListenerType
impl StructuralPartialEq for ListenerType
Auto Trait Implementations§
impl Freeze for ListenerType
impl RefUnwindSafe for ListenerType
impl Send for ListenerType
impl Sync for ListenerType
impl Unpin for ListenerType
impl UnwindSafe for ListenerType
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