Enum bip_utracker::announce::AnnounceEvent
[−]
[src]
pub enum AnnounceEvent { None, Completed, Started, Stopped, }
Announce event of a client reported to the server.
Variants
None
No event is reported.
Completed
Torrent download has completed.
Started
Torrent download has started.
Stopped
Torrent download has stopped.
Methods
impl AnnounceEvent
[src]
fn from_bytes(bytes: &[u8]) -> IResult<&[u8], AnnounceEvent>
[src]
Construct an AnnounceEvent from the given bytes.
fn write_bytes<W>(&self, writer: W) -> Result<()> where
W: Write,
[src]
W: Write,
Write the AnnounceEvent to the given writer.
fn as_id(&self) -> i32
[src]
Access the raw id of the current event.
Trait Implementations
impl Debug for AnnounceEvent
[src]
impl Copy for AnnounceEvent
[src]
impl Clone for AnnounceEvent
[src]
fn clone(&self) -> AnnounceEvent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for AnnounceEvent
[src]
fn eq(&self, __arg_0: &AnnounceEvent) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.