pub struct SampleInfohashesResult {
pub interval: i64,
pub num: i64,
pub samples: Vec<Id20>,
pub nodes: Vec<CompactNodeInfo>,
}Expand description
Result of a sample_infohashes query (BEP 51).
Fields§
§interval: i64Minimum seconds before querying the same node again.
num: i64Estimated total info hashes in the remote node’s store.
samples: Vec<Id20>Sampled info hashes.
nodes: Vec<CompactNodeInfo>Closer nodes for traversal.
Trait Implementations§
Source§impl Clone for SampleInfohashesResult
impl Clone for SampleInfohashesResult
Source§fn clone(&self) -> SampleInfohashesResult
fn clone(&self) -> SampleInfohashesResult
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 moreAuto Trait Implementations§
impl Freeze for SampleInfohashesResult
impl RefUnwindSafe for SampleInfohashesResult
impl Send for SampleInfohashesResult
impl Sync for SampleInfohashesResult
impl Unpin for SampleInfohashesResult
impl UnsafeUnpin for SampleInfohashesResult
impl UnwindSafe for SampleInfohashesResult
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