pub enum TimestampSource {
NativeModel,
ProviderWord,
ProviderSegment,
ChunkOffset,
Interpolated,
SyntheticSpan,
Unavailable,
}Expand description
How a segment’s timing was obtained (JOE-2219).
Variants§
NativeModel
Local model timing.
ProviderWord
Word timing from a remote ASR provider.
ProviderSegment
Segment timing from a provider.
ChunkOffset
Provider timing shifted by chunk start offset.
Interpolated
Aurum split text and estimated time proportionally.
SyntheticSpan
One full-duration span created because no provider timing existed.
No usable timing.
Implementations§
Source§impl TimestampSource
impl TimestampSource
pub fn as_str(self) -> &'static str
Sourcepub fn is_reliable(self) -> bool
pub fn is_reliable(self) -> bool
Conservative reliability for the legacy timestamps_reliable boolean.
Sourcepub fn is_approximate(self) -> bool
pub fn is_approximate(self) -> bool
Approximate / non-native timing that SRT rejects by default.
Trait Implementations§
Source§impl Clone for TimestampSource
impl Clone for TimestampSource
Source§fn clone(&self) -> TimestampSource
fn clone(&self) -> TimestampSource
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 TimestampSource
Source§impl Debug for TimestampSource
impl Debug for TimestampSource
Source§impl Default for TimestampSource
impl Default for TimestampSource
Source§fn default() -> TimestampSource
fn default() -> TimestampSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimestampSource
impl<'de> Deserialize<'de> for TimestampSource
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 TimestampSource
Source§impl PartialEq for TimestampSource
impl PartialEq for TimestampSource
Source§impl Serialize for TimestampSource
impl Serialize for TimestampSource
impl StructuralPartialEq for TimestampSource
Auto Trait Implementations§
impl Freeze for TimestampSource
impl RefUnwindSafe for TimestampSource
impl Send for TimestampSource
impl Sync for TimestampSource
impl Unpin for TimestampSource
impl UnsafeUnpin for TimestampSource
impl UnwindSafe for TimestampSource
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more