Struct ReadingChannels
pub struct ReadingChannels { /* private fields */ }Available on crate feature
sensors only.Expand description
Metadata required to interpret samples returned by Sensor::wait_for_reading().
§Note
This type is automatically generated, the number of ReadingChannels that can be
stored is automatically adjusted.
Implementations§
§impl ReadingChannels
impl ReadingChannels
pub fn iter(&self) -> impl ExactSizeIterator + FusedIterator
pub fn iter(&self) -> impl ExactSizeIterator + FusedIterator
Returns an iterator over the underlying ReadingChannel items.
For a given sensor driver, the number and order of items match the one of
Samples.
pub fn first(&self) -> ReadingChannel
pub fn first(&self) -> ReadingChannel
Returns the first ReadingChannel.
Trait Implementations§
§impl Clone for ReadingChannels
impl Clone for ReadingChannels
§fn clone(&self) -> ReadingChannels
fn clone(&self) -> ReadingChannels
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 more§impl Debug for ReadingChannels
impl Debug for ReadingChannels
§impl From<[ReadingChannel; 1]> for ReadingChannels
impl From<[ReadingChannel; 1]> for ReadingChannels
§fn from(value: [ReadingChannel; 1]) -> ReadingChannels
fn from(value: [ReadingChannel; 1]) -> ReadingChannels
Converts to this type from the input type.
impl Copy for ReadingChannels
Auto Trait Implementations§
impl Freeze for ReadingChannels
impl RefUnwindSafe for ReadingChannels
impl Send for ReadingChannels
impl Sync for ReadingChannels
impl Unpin for ReadingChannels
impl UnwindSafe for ReadingChannels
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