Enum bip_utracker::announce::DesiredPeers
[−]
[src]
pub enum DesiredPeers { Default, Specified(i32), }
Client desired number of peers to send in the response.
Variants
Default
Send the default number of peers.
Specified(i32)
Send a specific number of peers.
Methods
impl DesiredPeers
[src]
fn from_bytes(bytes: &[u8]) -> IResult<&[u8], DesiredPeers>
Construct the DesiredPeers from the given bytes.
fn write_bytes<W>(&self, writer: W) -> Result<()> where W: Write
Write the DesiredPeers to the given writer.
Trait Implementations
impl Clone for DesiredPeers
[src]
fn clone(&self) -> DesiredPeers
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for DesiredPeers
[src]
impl Eq for DesiredPeers
[src]
impl PartialEq for DesiredPeers
[src]
fn eq(&self, __arg_0: &DesiredPeers) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DesiredPeers) -> bool
This method tests for !=
.