Struct bluerobotics_ping::ping1d::SetGainSettingStruct
source · pub struct SetGainSettingStruct {
pub gain_setting: u8,
}Expand description
Set the current gain setting.
Fields§
§gain_setting: u8The current gain setting. 0: 0.6, 1: 1.8, 2: 5.5, 3: 12.9, 4: 30.2, 5: 66.1, 6: 144
Trait Implementations§
source§impl Clone for SetGainSettingStruct
impl Clone for SetGainSettingStruct
source§fn clone(&self) -> SetGainSettingStruct
fn clone(&self) -> SetGainSettingStruct
Returns a copy 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 SetGainSettingStruct
impl Debug for SetGainSettingStruct
source§impl Default for SetGainSettingStruct
impl Default for SetGainSettingStruct
source§fn default() -> SetGainSettingStruct
fn default() -> SetGainSettingStruct
Returns the “default value” for a type. Read more
source§impl DeserializePayload for SetGainSettingStruct
impl DeserializePayload for SetGainSettingStruct
fn deserialize(payload: &[u8]) -> Self
source§impl PartialEq for SetGainSettingStruct
impl PartialEq for SetGainSettingStruct
source§fn eq(&self, other: &SetGainSettingStruct) -> bool
fn eq(&self, other: &SetGainSettingStruct) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SetGainSettingStruct
Auto Trait Implementations§
impl Freeze for SetGainSettingStruct
impl RefUnwindSafe for SetGainSettingStruct
impl Send for SetGainSettingStruct
impl Sync for SetGainSettingStruct
impl Unpin for SetGainSettingStruct
impl UnwindSafe for SetGainSettingStruct
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