Struct bluerobotics_ping::ping1d::SetPingEnableStruct
source · pub struct SetPingEnableStruct {
pub ping_enabled: u8,
}Expand description
Enable or disable acoustic measurements.
Fields§
§ping_enabled: u80: Disable, 1: Enable.
Trait Implementations§
source§impl Clone for SetPingEnableStruct
impl Clone for SetPingEnableStruct
source§fn clone(&self) -> SetPingEnableStruct
fn clone(&self) -> SetPingEnableStruct
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 SetPingEnableStruct
impl Debug for SetPingEnableStruct
source§impl Default for SetPingEnableStruct
impl Default for SetPingEnableStruct
source§fn default() -> SetPingEnableStruct
fn default() -> SetPingEnableStruct
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetPingEnableStruct
impl<'de> Deserialize<'de> for SetPingEnableStruct
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 SetPingEnableStruct
impl DeserializePayload for SetPingEnableStruct
fn deserialize(payload: &[u8]) -> Self
source§impl MessageInfo for SetPingEnableStruct
impl MessageInfo for SetPingEnableStruct
source§impl PartialEq for SetPingEnableStruct
impl PartialEq for SetPingEnableStruct
source§fn eq(&self, other: &SetPingEnableStruct) -> bool
fn eq(&self, other: &SetPingEnableStruct) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SetPingEnableStruct
impl Serialize for SetPingEnableStruct
impl StructuralPartialEq for SetPingEnableStruct
Auto Trait Implementations§
impl Freeze for SetPingEnableStruct
impl RefUnwindSafe for SetPingEnableStruct
impl Send for SetPingEnableStruct
impl Sync for SetPingEnableStruct
impl Unpin for SetPingEnableStruct
impl UnwindSafe for SetPingEnableStruct
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