pub struct PowerSetting(pub f32);Expand description
Passing a power setting value to a mechanical component (e.g. throttle valve in a combustion engine). Value generally ranges from 0.0 to 1.0, 1.0 corresponds to the maximum normal setting value. Values above 1.0 are also conceivable if technically possible.
Important: The target component can process this value in a control loop, but this is by no means necessarily the case!
Tuple Fields§
§0: f32Trait Implementations§
Source§impl Clone for PowerSetting
impl Clone for PowerSetting
Source§fn clone(&self) -> PowerSetting
fn clone(&self) -> PowerSetting
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerSetting
impl Debug for PowerSetting
Source§impl<'de> Deserialize<'de> for PowerSetting
impl<'de> Deserialize<'de> for PowerSetting
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MessageType for PowerSetting
impl MessageType for PowerSetting
Source§const MESSAGE_META: MessageMeta
const MESSAGE_META: MessageMeta
The metadata for the message type.
Source§impl PartialEq for PowerSetting
impl PartialEq for PowerSetting
Source§impl Serialize for PowerSetting
impl Serialize for PowerSetting
impl Copy for PowerSetting
impl StructuralPartialEq for PowerSetting
Auto Trait Implementations§
impl Freeze for PowerSetting
impl RefUnwindSafe for PowerSetting
impl Send for PowerSetting
impl Sync for PowerSetting
impl Unpin for PowerSetting
impl UnwindSafe for PowerSetting
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)