pub struct FrameParams {
pub records: u16,
pub step_ms: Option<u32>,
pub jitter_ms: Option<u32>,
pub keyframe_every: u32,
pub deadband: BTreeMap<String, Deadband>,
}Expand description
A frame resource’s frame table, resolved (core §7.7): every key has
its value, a default’s included.
Fields§
§records: u16From 1 to 256.
step_ms: Option<u32>From 1 to 2^32 − 1, exactly when records is above 1.
jitter_ms: Option<u32>From 0 to step_ms / 2; set exactly when step_ms is.
keyframe_every: u32From 1 to 65,536.
deadband: BTreeMap<String, Deadband>By field name.
Implementations§
Source§impl FrameParams
impl FrameParams
Sourcepub fn resolve(spec: &FrameSpec) -> Result<Self, Vec<String>>
pub fn resolve(spec: &FrameSpec) -> Result<Self, Vec<String>>
The table as written, resolved; or E048’s findings, one sentence each, for every key and deadband member outside §7.7’s table.
§Errors
Each value out of range, in words.
Sourcepub fn interval_ms(&self, annotations: &BTreeMap<String, Value>) -> Option<u64>
pub fn interval_ms(&self, annotations: &BTreeMap<String, Value>) -> Option<u64>
The frame resource’s interval (core §7.7): its span where it has a
step, else the timing.period_ms its annotations declare as
timing.v1 §2.2 reads them, else unstated.
Trait Implementations§
Source§impl Clone for FrameParams
impl Clone for FrameParams
Source§impl Debug for FrameParams
impl Debug for FrameParams
impl Eq for FrameParams
Source§impl PartialEq for FrameParams
impl PartialEq for FrameParams
impl StructuralPartialEq for FrameParams
Auto Trait Implementations§
impl Forget for FrameParams
impl Freeze for FrameParams
impl Move for FrameParams
impl RefUnwindSafe for FrameParams
impl Send for FrameParams
impl Sync for FrameParams
impl Unpin for FrameParams
impl UnsafeUnpin for FrameParamswhere
*const LeafNode<String, Deadband> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Deadband)>>: UnsafeUnpin,
impl UnwindSafe for FrameParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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