#[non_exhaustive]pub enum Timing {
Static,
Frames {
durations: Vec<i64>,
},
Rate {
rate: FrameRate,
frames: usize,
},
}Expand description
When a source’s frames are shown, in source time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Static
One picture, whatever the time.
Frames
Frames shown for their own durations, in ticks, one after another.
Fields
§
durations: Vec<i64>Each frame’s duration: longer than MAX_NORMALIZED_DELAY_MS, or
normalized to NORMALIZED_DELAY_MS.
Rate
Frames at a fixed rate.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Timing
Auto Trait Implementations§
impl Freeze for Timing
impl RefUnwindSafe for Timing
impl Send for Timing
impl Sync for Timing
impl Unpin for Timing
impl UnsafeUnpin for Timing
impl UnwindSafe for Timing
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