Struct librqbit_dht::DhtConfig
source · pub struct DhtConfig {
pub peer_id: Option<Id20>,
pub bootstrap_addrs: Option<Vec<String>>,
pub routing_table: Option<RoutingTable>,
pub listen_addr: Option<SocketAddr>,
pub peer_store: Option<PeerStore>,
pub cancellation_token: Option<CancellationToken>,
}
Fields§
§peer_id: Option<Id20>
§bootstrap_addrs: Option<Vec<String>>
§routing_table: Option<RoutingTable>
§listen_addr: Option<SocketAddr>
§peer_store: Option<PeerStore>
§cancellation_token: Option<CancellationToken>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DhtConfig
impl !RefUnwindSafe for DhtConfig
impl Send for DhtConfig
impl Sync for DhtConfig
impl Unpin for DhtConfig
impl UnwindSafe for DhtConfig
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