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>

Construct an AnnounceEvent from the given bytes.

fn write_bytes<W>(&self, writer: W) -> Result<()> where W: Write

Write the AnnounceEvent to the given writer.

fn as_id(&self) -> i32

Access the raw id of the current event.

Trait Implementations

impl Eq for AnnounceEvent
[src]

impl PartialEq for AnnounceEvent
[src]

fn eq(&self, __arg_0: &AnnounceEvent) -> bool

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

This method tests for !=.

impl Clone for AnnounceEvent
[src]

fn clone(&self) -> AnnounceEvent

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 AnnounceEvent
[src]

impl Debug for AnnounceEvent
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.