#[repr(u8)]pub enum FilePriority {
Skip = 0,
Low = 1,
Normal = 4,
High = 7,
}Expand description
Per-file download priority.
Matches libtorrent’s priority scale. Skip means “do not download”.
PartialOrd/Ord ordering: Skip < Low < Normal < High.
Variants§
Skip = 0
Do not download this file.
Low = 1
Low download priority.
Normal = 4
Default download priority.
High = 7
High download priority.
Trait Implementations§
Source§impl Clone for FilePriority
impl Clone for FilePriority
Source§fn clone(&self) -> FilePriority
fn clone(&self) -> FilePriority
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 moreSource§impl Debug for FilePriority
impl Debug for FilePriority
Source§impl Default for FilePriority
impl Default for FilePriority
Source§fn default() -> FilePriority
fn default() -> FilePriority
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilePriority
impl<'de> Deserialize<'de> for FilePriority
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FilePriority, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FilePriority, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<u8> for FilePriority
impl From<u8> for FilePriority
Source§fn from(v: u8) -> FilePriority
fn from(v: u8) -> FilePriority
Converts to this type from the input type.
Source§impl Hash for FilePriority
impl Hash for FilePriority
Source§impl Ord for FilePriority
impl Ord for FilePriority
Source§fn cmp(&self, other: &FilePriority) -> Ordering
fn cmp(&self, other: &FilePriority) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FilePriority
impl PartialEq for FilePriority
Source§fn eq(&self, other: &FilePriority) -> bool
fn eq(&self, other: &FilePriority) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FilePriority
impl PartialOrd for FilePriority
Source§impl Serialize for FilePriority
impl Serialize for FilePriority
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FilePriority
impl Eq for FilePriority
impl StructuralPartialEq for FilePriority
Auto Trait Implementations§
impl Freeze for FilePriority
impl RefUnwindSafe for FilePriority
impl Send for FilePriority
impl Sync for FilePriority
impl Unpin for FilePriority
impl UnsafeUnpin for FilePriority
impl UnwindSafe for FilePriority
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.