pub struct DHTOptions {
pub port: u16,
pub netmode: NetMode,
pub hash_queue_capacity: usize,
pub metadata: MetadataOptions,
pub peer_lookup: PeerLookupOptions,
pub crawl: CrawlOptions,
}Expand description
Complete server configuration.
Fields§
§port: u16UDP listen port.
netmode: NetModeEnabled IP families.
hash_queue_capacity: usizeCapacity between announce processing and the Metadata scheduler.
metadata: MetadataOptionsMetadata download and Peer-cache limits.
peer_lookup: PeerLookupOptionsActive get_peers lookup rate and concurrency limits.
crawl: CrawlOptionsActive crawl, node-pool and scheduler limits.
Trait Implementations§
Source§impl Clone for DHTOptions
impl Clone for DHTOptions
Source§fn clone(&self) -> DHTOptions
fn clone(&self) -> DHTOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DHTOptions
impl Debug for DHTOptions
Auto Trait Implementations§
impl Freeze for DHTOptions
impl RefUnwindSafe for DHTOptions
impl Send for DHTOptions
impl Sync for DHTOptions
impl Unpin for DHTOptions
impl UnsafeUnpin for DHTOptions
impl UnwindSafe for DHTOptions
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