#[repr(C)]pub struct ScheduledScanPlan {
pub interval: u32,
pub iterations: u32,
}Expand description
A scan plan defines the number of scan iterations and the interval between scans. Time of first scan (e.g. t=0, t=interval, etc.) is determined by the firmware.
Fields§
§interval: u32The interval between scans, in seconds.
iterations: u32The number of iterations to scan for. If 0, the scan plan will run indefinitely.
Trait Implementations§
Source§impl Clone for ScheduledScanPlan
impl Clone for ScheduledScanPlan
Source§fn clone(&self) -> ScheduledScanPlan
fn clone(&self) -> ScheduledScanPlan
Returns a duplicate of the value. Read more
1.0.0 · 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 ScheduledScanPlan
impl Debug for ScheduledScanPlan
Source§impl<D> Decode<ScheduledScanPlan, D> for ScheduledScanPlanwhere
D: ResourceDialect,
impl<D> Decode<ScheduledScanPlan, D> for ScheduledScanPlanwhere
D: ResourceDialect,
Source§fn new_empty() -> ScheduledScanPlan
fn new_empty() -> ScheduledScanPlan
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<ScheduledScanPlan, D> for &ScheduledScanPlanwhere
D: ResourceDialect,
impl<D> Encode<ScheduledScanPlan, D> for &ScheduledScanPlanwhere
D: ResourceDialect,
Source§impl Hash for ScheduledScanPlan
impl Hash for ScheduledScanPlan
Source§impl Ord for ScheduledScanPlan
impl Ord for ScheduledScanPlan
Source§fn cmp(&self, other: &ScheduledScanPlan) -> Ordering
fn cmp(&self, other: &ScheduledScanPlan) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScheduledScanPlan
impl PartialEq for ScheduledScanPlan
Source§impl PartialOrd for ScheduledScanPlan
impl PartialOrd for ScheduledScanPlan
Source§impl TypeMarker for ScheduledScanPlan
impl TypeMarker for ScheduledScanPlan
Source§type Owned = ScheduledScanPlan
type Owned = ScheduledScanPlan
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for ScheduledScanPlan
impl ValueTypeMarker for ScheduledScanPlan
Source§type Borrowed<'a> = &'a ScheduledScanPlan
type Borrowed<'a> = &'a ScheduledScanPlan
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<ScheduledScanPlan as TypeMarker>::Owned,
) -> <ScheduledScanPlan as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ScheduledScanPlan as TypeMarker>::Owned, ) -> <ScheduledScanPlan as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for ScheduledScanPlan
impl Eq for ScheduledScanPlan
impl Persistable for ScheduledScanPlan
impl StructuralPartialEq for ScheduledScanPlan
Auto Trait Implementations§
impl Freeze for ScheduledScanPlan
impl RefUnwindSafe for ScheduledScanPlan
impl Send for ScheduledScanPlan
impl Sync for ScheduledScanPlan
impl Unpin for ScheduledScanPlan
impl UnsafeUnpin for ScheduledScanPlan
impl UnwindSafe for ScheduledScanPlan
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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