pub struct DebugTorrentState {
pub info_hash: String,
pub state: String,
pub num_peers: usize,
pub dispatch: DebugDispatchState,
pub peers: Vec<DebugPeerState>,
}Expand description
Per-torrent debug state including dispatch counters and peer details.
Fields§
§info_hash: StringHex-encoded info hash.
state: StringCurrent torrent state (e.g. “Downloading”, “Seeding”).
num_peers: usizeNumber of connected peers.
dispatch: DebugDispatchStateDispatch-level counters.
peers: Vec<DebugPeerState>Per-peer debug state.
Trait Implementations§
Source§impl Clone for DebugTorrentState
impl Clone for DebugTorrentState
Source§fn clone(&self) -> DebugTorrentState
fn clone(&self) -> DebugTorrentState
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 DebugTorrentState
impl Debug for DebugTorrentState
Auto Trait Implementations§
impl Freeze for DebugTorrentState
impl RefUnwindSafe for DebugTorrentState
impl Send for DebugTorrentState
impl Sync for DebugTorrentState
impl Unpin for DebugTorrentState
impl UnsafeUnpin for DebugTorrentState
impl UnwindSafe for DebugTorrentState
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