pub enum SimpleContentType {
Audio,
Video,
Other,
}Expand description
Coarse content-type classification surfaced as {content_type}.
Detection is left to the caller (the GUI infers from the torrent’s
file list at add-time). Three buckets keep the storage layout simple
and predictable for users — Audio and Video map onto common library
roots, Other catches everything else.
Variants§
Audio
Predominantly audio files (e.g. .mp3, .flac, .wav).
Video
Predominantly video files (e.g. .mkv, .mp4, .avi).
Other
Anything that did not classify as Audio or Video.
Implementations§
Trait Implementations§
Source§impl Clone for SimpleContentType
impl Clone for SimpleContentType
Source§fn clone(&self) -> SimpleContentType
fn clone(&self) -> SimpleContentType
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 SimpleContentType
impl Debug for SimpleContentType
Source§impl Hash for SimpleContentType
impl Hash for SimpleContentType
Source§impl PartialEq for SimpleContentType
impl PartialEq for SimpleContentType
Source§fn eq(&self, other: &SimpleContentType) -> bool
fn eq(&self, other: &SimpleContentType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SimpleContentType
impl Eq for SimpleContentType
impl StructuralPartialEq for SimpleContentType
Auto Trait Implementations§
impl Freeze for SimpleContentType
impl RefUnwindSafe for SimpleContentType
impl Send for SimpleContentType
impl Sync for SimpleContentType
impl Unpin for SimpleContentType
impl UnsafeUnpin for SimpleContentType
impl UnwindSafe for SimpleContentType
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§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.