Struct EncoderConfig
pub struct EncoderConfig {
pub tick_ns: u64,
pub max_resets_per_frame: Option<u8>,
}Expand description
Encoder configuration: tick duration and the optional reset budget.
Fields§
§tick_ns: u64Nanoseconds per unwrapped tick. Must not be zero.
max_resets_per_frame: Option<u8>Maximum non-startup resets per frame; None uses the schema-derived default.
Trait Implementations§
§impl Clone for EncoderConfig
impl Clone for EncoderConfig
§fn clone(&self) -> EncoderConfig
fn clone(&self) -> EncoderConfig
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 EncoderConfig
§impl Debug for EncoderConfig
impl Debug for EncoderConfig
§impl Default for EncoderConfig
impl Default for EncoderConfig
§fn default() -> EncoderConfig
fn default() -> EncoderConfig
Returns the “default value” for a type. Read more
impl Eq for EncoderConfig
§impl PartialEq for EncoderConfig
impl PartialEq for EncoderConfig
impl StructuralPartialEq for EncoderConfig
Auto Trait Implementations§
impl Freeze for EncoderConfig
impl RefUnwindSafe for EncoderConfig
impl Send for EncoderConfig
impl Sync for EncoderConfig
impl Unpin for EncoderConfig
impl UnsafeUnpin for EncoderConfig
impl UnwindSafe for EncoderConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.