pub enum TrackerEvent {
Started,
Stopped,
Completed,
None,
}Expand description
Tracker announce events as defined in BEP 3 / BEP 15.
These events control the lifecycle of tracker announcements.
Variants§
Started
Download started - sent on first announce
Stopped
Download stopped/cancelled - sent on shutdown
Completed
Download completed - sent when all pieces downloaded
None
No specific event - used for regular interval announces
Implementations§
Trait Implementations§
Source§impl Clone for TrackerEvent
impl Clone for TrackerEvent
Source§fn clone(&self) -> TrackerEvent
fn clone(&self) -> TrackerEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrackerEvent
Source§impl Debug for TrackerEvent
impl Debug for TrackerEvent
impl Eq for TrackerEvent
Source§impl PartialEq for TrackerEvent
impl PartialEq for TrackerEvent
impl StructuralPartialEq for TrackerEvent
Auto Trait Implementations§
impl Freeze for TrackerEvent
impl RefUnwindSafe for TrackerEvent
impl Send for TrackerEvent
impl Sync for TrackerEvent
impl Unpin for TrackerEvent
impl UnsafeUnpin for TrackerEvent
impl UnwindSafe for TrackerEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.