pub struct DecodedSignal {
pub name: String,
pub value: f64,
pub unit: String,
}Expand description
A decoded signal with its physical value.
Represents a single signal from a CAN message after decoding and applying scaling/offset transformations.
Fields§
§name: StringThe name of the signal as defined in the DBC file
value: f64The physical value after applying factor and offset
unit: StringThe unit of measurement (e.g., “km/h”, “°C”, “RPM”)
Trait Implementations§
Source§impl Clone for DecodedSignal
impl Clone for DecodedSignal
Source§fn clone(&self) -> DecodedSignal
fn clone(&self) -> DecodedSignal
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 moreAuto Trait Implementations§
impl Freeze for DecodedSignal
impl RefUnwindSafe for DecodedSignal
impl Send for DecodedSignal
impl Sync for DecodedSignal
impl Unpin for DecodedSignal
impl UnsafeUnpin for DecodedSignal
impl UnwindSafe for DecodedSignal
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