pub struct MetadataFetchCompletion {
pub info_hash: String,
pub status: MetadataFetchCompletionStatus,
pub attempts: usize,
}Expand description
Report emitted exactly once after an admitted metadata fetch finishes.
Fields§
§info_hash: StringInfoHash that reached a terminal state.
status: MetadataFetchCompletionStatusFinal download/delivery status.
attempts: usizeReal Peer network attempts; failure-cache skips are excluded.
Implementations§
Source§impl MetadataFetchCompletion
impl MetadataFetchCompletion
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true only for MetadataFetchCompletionStatus::Accepted.
Trait Implementations§
Source§impl Clone for MetadataFetchCompletion
impl Clone for MetadataFetchCompletion
Source§fn clone(&self) -> MetadataFetchCompletion
fn clone(&self) -> MetadataFetchCompletion
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 MetadataFetchCompletion
impl Debug for MetadataFetchCompletion
impl Eq for MetadataFetchCompletion
Source§impl PartialEq for MetadataFetchCompletion
impl PartialEq for MetadataFetchCompletion
impl StructuralPartialEq for MetadataFetchCompletion
Auto Trait Implementations§
impl Freeze for MetadataFetchCompletion
impl RefUnwindSafe for MetadataFetchCompletion
impl Send for MetadataFetchCompletion
impl Sync for MetadataFetchCompletion
impl Unpin for MetadataFetchCompletion
impl UnsafeUnpin for MetadataFetchCompletion
impl UnwindSafe for MetadataFetchCompletion
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