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<'de> Deserialize<'de> for SetGainSettingStruct
impl<'de> Deserialize<'de> for SetGainSettingStruct
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 DeserializePayload for SetGainSettingStruct
impl DeserializePayload for SetGainSettingStruct
fn deserialize(payload: &[u8]) -> Self
source§impl MessageInfo for SetGainSettingStruct
impl MessageInfo for SetGainSettingStruct
source§impl PartialEq for SetGainSettingStruct
impl PartialEq for SetGainSettingStruct
source§impl Serialize for SetGainSettingStruct
impl Serialize for SetGainSettingStruct
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)