Struct ReadingChannel
pub struct ReadingChannel { /* private fields */ }Available on crate feature
sensors only.Expand description
Provides metadata about a Sample.
Implementations§
§impl ReadingChannel
impl ReadingChannel
pub fn new(label: Label, scaling: i8, unit: MeasurementUnit) -> ReadingChannel
pub fn new(label: Label, scaling: i8, unit: MeasurementUnit) -> ReadingChannel
Creates a new ReadingChannel.
This constructor is intended for sensor driver implementors only.
pub fn unit(&self) -> MeasurementUnit
pub fn unit(&self) -> MeasurementUnit
Returns the unit of measurement for this channel.
Trait Implementations§
§impl Clone for ReadingChannel
impl Clone for ReadingChannel
§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 more§impl Debug for ReadingChannel
impl Debug for ReadingChannel
§impl Format for ReadingChannel
impl Format for ReadingChannel
§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