pub struct DhtRequester { /* private fields */ }Implementations§
Source§impl DhtRequester
impl DhtRequester
pub fn new( bootstrap_node_addrs: Option<Vec<SocketAddrV4>>, info_hash: [u8; 20], ) -> Result<Self>
pub async fn process_dht_nodes( &mut self, cancellation: Receiver<()>, peer_queue_sender: Sender<SocketAddrV4>, ) -> Result<()>
pub async fn query_next_node(&mut self, socket: &UdpSocket) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DhtRequester
impl RefUnwindSafe for DhtRequester
impl Send for DhtRequester
impl Sync for DhtRequester
impl Unpin for DhtRequester
impl UnsafeUnpin for DhtRequester
impl UnwindSafe for DhtRequester
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