pub enum SubtitleSync {
Original,
Syncing,
Synced {
offset_ms: i64,
factor_ppm: u32,
splits: u32,
score: u8,
},
Uncertain {
score: u8,
},
Failed {
reason: String,
},
Unknown,
}Expand description
Where a subtitle’s sync is.
Variants§
Original
Its own timing, as the file has it: never synced, or put back with “Use original timing”.
Syncing
Being synced, or waiting its turn; it is served as it was until the sync is done.
Synced
Synced, and served synced.
Fields
Uncertain
A sync scored too low to trust: it may be another film’s subtitle. Served with its original timing.
Failed
The sync could not be made; served as it was.
Unknown
A state this build does not know: show the track as it is.
Trait Implementations§
Source§impl Clone for SubtitleSync
impl Clone for SubtitleSync
Source§impl Debug for SubtitleSync
impl Debug for SubtitleSync
Source§impl<'de> Deserialize<'de> for SubtitleSync
impl<'de> Deserialize<'de> for SubtitleSync
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SubtitleSync
Source§impl PartialEq for SubtitleSync
impl PartialEq for SubtitleSync
Source§impl Serialize for SubtitleSync
impl Serialize for SubtitleSync
impl StructuralPartialEq for SubtitleSync
Auto Trait Implementations§
impl Freeze for SubtitleSync
impl RefUnwindSafe for SubtitleSync
impl Send for SubtitleSync
impl Sync for SubtitleSync
impl Unpin for SubtitleSync
impl UnsafeUnpin for SubtitleSync
impl UnwindSafe for SubtitleSync
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