Struct aquatic_http_protocol::request::AnnounceRequest
source · pub struct AnnounceRequest {
pub info_hash: InfoHash,
pub peer_id: PeerId,
pub port: u16,
pub bytes_uploaded: usize,
pub bytes_downloaded: usize,
pub bytes_left: usize,
pub event: AnnounceEvent,
pub numwant: Option<usize>,
pub key: Option<CompactString>,
}
Fields§
§info_hash: InfoHash
§peer_id: PeerId
§port: u16
§bytes_uploaded: usize
§bytes_downloaded: usize
§bytes_left: usize
§event: AnnounceEvent
§numwant: Option<usize>
Number of response peers wanted
key: Option<CompactString>
Implementations§
source§impl AnnounceRequest
impl AnnounceRequest
pub fn from_query_string(query_string: &str) -> Result<Self>
Trait Implementations§
source§impl Clone for AnnounceRequest
impl Clone for AnnounceRequest
source§fn clone(&self) -> AnnounceRequest
fn clone(&self) -> AnnounceRequest
Returns a copy 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 moresource§impl Debug for AnnounceRequest
impl Debug for AnnounceRequest
source§impl PartialEq<AnnounceRequest> for AnnounceRequest
impl PartialEq<AnnounceRequest> for AnnounceRequest
source§fn eq(&self, other: &AnnounceRequest) -> bool
fn eq(&self, other: &AnnounceRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.