Enum bip_dht::Router
[−]
[src]
pub enum Router { uTorrent, BitTorrent, BitComet, Transmission, Custom(SocketAddr), }
Enumerates different routers that can be used to bootstrap a dht.
Variants
uTorrent
Bootstrap server maintained by uTorrent.
BitTorrent
Bootstrap server maintained by BitTorrent.
BitComet
Bootstrap server maintained by BitComet.
Transmission
Bootstrap server maintained by Transmission.
Custom(SocketAddr)
Custom bootstrap server.
Methods
impl Router
[src]
fn ipv4_addr(&self) -> Result<SocketAddrV4>
fn ipv6_addr(&self) -> Result<SocketAddrV6>
fn socket_addr(&self) -> Result<SocketAddr>
Trait Implementations
impl Copy for Router
[src]
impl Clone for Router
[src]
fn clone(&self) -> Router
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Router
[src]
fn eq(&self, __arg_0: &Router) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Router) -> bool
This method tests for !=
.
impl Eq for Router
[src]
impl Hash for Router
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more