pub struct ReadingChannel { /* private fields */ }Expand description
Provides metadata about a Sample.
Implementations§
Source§impl ReadingChannel
impl ReadingChannel
Sourcepub fn new(label: Label, scaling: i8, unit: MeasurementUnit) -> Self
pub fn new(label: Label, scaling: i8, unit: MeasurementUnit) -> Self
Creates a new ReadingChannel.
This constructor is intended for sensor driver implementors only.
Sourcepub fn unit(&self) -> MeasurementUnit
pub fn unit(&self) -> MeasurementUnit
Returns the unit of measurement for this channel.
Trait Implementations§
Source§impl Clone for ReadingChannel
impl Clone for ReadingChannel
Source§fn clone(&self) -> ReadingChannel
fn clone(&self) -> ReadingChannel
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 ReadingChannel
impl Debug for ReadingChannel
Source§impl Format for ReadingChannelwhere
Label: Format,
MeasurementUnit: Format,
impl Format for ReadingChannelwhere
Label: Format,
MeasurementUnit: Format,
Source§impl PartialEq for ReadingChannel
impl PartialEq for ReadingChannel
impl Copy for ReadingChannel
impl StructuralPartialEq for ReadingChannel
Auto Trait Implementations§
impl Freeze for ReadingChannel
impl RefUnwindSafe for ReadingChannel
impl Send for ReadingChannel
impl Sync for ReadingChannel
impl Unpin for ReadingChannel
impl UnwindSafe for ReadingChannel
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