pub struct DeviceAdapterLoopPlan { /* private fields */ }Expand description
Pacing plan for a composed device adapter loop.
Implementations§
Source§impl DeviceAdapterLoopPlan
impl DeviceAdapterLoopPlan
Sourcepub fn for_profile(
profile: &DeviceProfile,
route: RouteArg,
stale: DeviceHostStalePolicy,
) -> Self
pub fn for_profile( profile: &DeviceProfile, route: RouteArg, stale: DeviceHostStalePolicy, ) -> Self
Builds a pacing plan from the selected profile, route, and stale policy.
Sourcepub fn rate_class(&self) -> DeviceRateClass
pub fn rate_class(&self) -> DeviceRateClass
Returns the rate class used by this adapter loop.
Sourcepub fn stale_policy(&self) -> DeviceHostStalePolicy
pub fn stale_policy(&self) -> DeviceHostStalePolicy
Returns the stale-sample policy used by this adapter loop.
Sourcepub fn interval_ms(&self) -> u64
pub fn interval_ms(&self) -> u64
Returns the delay between adapter ticks in milliseconds.
Sourcepub fn next_tick(&mut self) -> AdapterTick
pub fn next_tick(&mut self) -> AdapterTick
Advances the adapter clock by one paced tick.
Trait Implementations§
Source§impl Clone for DeviceAdapterLoopPlan
impl Clone for DeviceAdapterLoopPlan
Source§impl Debug for DeviceAdapterLoopPlan
impl Debug for DeviceAdapterLoopPlan
impl Eq for DeviceAdapterLoopPlan
Source§impl PartialEq for DeviceAdapterLoopPlan
impl PartialEq for DeviceAdapterLoopPlan
impl StructuralPartialEq for DeviceAdapterLoopPlan
Auto Trait Implementations§
impl Forget for DeviceAdapterLoopPlan
impl Freeze for DeviceAdapterLoopPlan
impl Move for DeviceAdapterLoopPlan
impl RefUnwindSafe for DeviceAdapterLoopPlan
impl Send for DeviceAdapterLoopPlan
impl Sync for DeviceAdapterLoopPlan
impl Unpin for DeviceAdapterLoopPlan
impl UnsafeUnpin for DeviceAdapterLoopPlan
impl UnwindSafe for DeviceAdapterLoopPlan
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,
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.