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§fn clone(&self) -> DeviceAdapterLoopPlan
fn clone(&self) -> DeviceAdapterLoopPlan
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 moreSource§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 Freeze 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