pub struct AnnounceRequest {
pub info_hash: Id20,
pub peer_id: Id20,
pub port: u16,
pub uploaded: u64,
pub downloaded: u64,
pub left: u64,
pub event: AnnounceEvent,
pub num_want: Option<i32>,
pub compact: bool,
pub i2p_destination: Option<String>,
}Expand description
Common announce request parameters.
Fields§
§info_hash: Id20SHA-1 info hash of the torrent.
peer_id: Id20Our 20-byte peer ID.
port: u16Port we are listening on.
uploaded: u64Total bytes uploaded since last announce.
downloaded: u64Total bytes downloaded since last announce.
left: u64Bytes remaining to download.
event: AnnounceEventOptional announce event (started/stopped/completed).
num_want: Option<i32>Maximum number of peers to return (None = tracker default).
compact: boolRequest compact peer list (6 bytes per IPv4 peer).
i2p_destination: Option<String>I2P destination Base64 string (BEP 7). Sent as &i2p=<dest> in HTTP announces.
Trait Implementations§
Source§impl Clone for AnnounceRequest
impl Clone for AnnounceRequest
Source§fn clone(&self) -> AnnounceRequest
fn clone(&self) -> AnnounceRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 AnnounceRequest
impl RefUnwindSafe for AnnounceRequest
impl Send for AnnounceRequest
impl Sync for AnnounceRequest
impl Unpin for AnnounceRequest
impl UnsafeUnpin for AnnounceRequest
impl UnwindSafe for AnnounceRequest
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