pub enum NetMode {
Ipv4Only,
Ipv6Only,
DualStack,
}Expand description
IP families on which the DHT server listens and crawls.
Variants§
Ipv4Only
Bind and crawl IPv4 only.
Ipv6Only
Bind and crawl IPv6 only.
DualStack
Bind separate IPv4 and IPv6 sockets.
Trait Implementations§
impl Copy for NetMode
impl Eq for NetMode
impl StructuralPartialEq for NetMode
Auto Trait Implementations§
impl Freeze for NetMode
impl RefUnwindSafe for NetMode
impl Send for NetMode
impl Sync for NetMode
impl Unpin for NetMode
impl UnsafeUnpin for NetMode
impl UnwindSafe for NetMode
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