pub struct SampleInfohashesResponse {
pub id: Id20,
pub interval: i64,
pub num: i64,
pub samples: Vec<Id20>,
pub nodes: Vec<CompactNodeInfo>,
}Expand description
Response to sample_infohashes (BEP 51).
Fields§
§id: Id20Responding node’s ID.
interval: i64Minimum seconds before querying this node again.
num: i64Estimated total number of info hashes in this node’s storage.
samples: Vec<Id20>Random sample of info hashes (each 20 bytes).
nodes: Vec<CompactNodeInfo>Closer nodes (compact format), for DHT traversal.
Trait Implementations§
Source§impl Clone for SampleInfohashesResponse
impl Clone for SampleInfohashesResponse
Source§fn clone(&self) -> SampleInfohashesResponse
fn clone(&self) -> SampleInfohashesResponse
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 SampleInfohashesResponse
impl Debug for SampleInfohashesResponse
impl Eq for SampleInfohashesResponse
Source§impl PartialEq for SampleInfohashesResponse
impl PartialEq for SampleInfohashesResponse
Source§fn eq(&self, other: &SampleInfohashesResponse) -> bool
fn eq(&self, other: &SampleInfohashesResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SampleInfohashesResponse
Auto Trait Implementations§
impl Freeze for SampleInfohashesResponse
impl RefUnwindSafe for SampleInfohashesResponse
impl Send for SampleInfohashesResponse
impl Sync for SampleInfohashesResponse
impl Unpin for SampleInfohashesResponse
impl UnsafeUnpin for SampleInfohashesResponse
impl UnwindSafe for SampleInfohashesResponse
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