pub enum SubtitleSource {
OpenSubtitles,
SubDl,
}Expand description
A subtitle site the server searches and downloads from. On the wire
it is its id, a string: a client shows a site
this build does not know as that id.
Variants§
Implementations§
Source§impl SubtitleSource
impl SubtitleSource
Sourcepub const ALL: [SubtitleSource; 2]
pub const ALL: [SubtitleSource; 2]
Every site, in the order the server asks them unless the admin set another.
Sourcepub fn of(id: &str) -> Option<SubtitleSource>
pub fn of(id: &str) -> Option<SubtitleSource>
The site id names, if one.
Trait Implementations§
Source§impl Clone for SubtitleSource
impl Clone for SubtitleSource
impl Copy for SubtitleSource
Source§impl Debug for SubtitleSource
impl Debug for SubtitleSource
Source§impl Display for SubtitleSource
impl Display for SubtitleSource
impl Eq for SubtitleSource
Source§impl Hash for SubtitleSource
impl Hash for SubtitleSource
Source§impl Ord for SubtitleSource
impl Ord for SubtitleSource
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SubtitleSource
impl PartialEq for SubtitleSource
Source§impl PartialOrd for SubtitleSource
impl PartialOrd for SubtitleSource
impl StructuralPartialEq for SubtitleSource
Auto Trait Implementations§
impl Freeze for SubtitleSource
impl RefUnwindSafe for SubtitleSource
impl Send for SubtitleSource
impl Sync for SubtitleSource
impl Unpin for SubtitleSource
impl UnsafeUnpin for SubtitleSource
impl UnwindSafe for SubtitleSource
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