pub struct DeviceInformationStruct {
pub device_type: u8,
pub device_revision: u8,
pub firmware_version_major: u8,
pub firmware_version_minor: u8,
pub firmware_version_patch: u8,
pub reserved: u8,
}Expand description
Device information
Fields§
§device_type: u8Device type. 0: Unknown; 1: Ping Echosounder; 2: Ping360
device_revision: u8device-specific hardware revision
firmware_version_major: u8Firmware version major number.
firmware_version_minor: u8Firmware version minor number.
firmware_version_patch: u8Firmware version patch number.
reserved: u8reserved
Trait Implementations§
Source§impl Clone for DeviceInformationStruct
impl Clone for DeviceInformationStruct
Source§fn clone(&self) -> DeviceInformationStruct
fn clone(&self) -> DeviceInformationStruct
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 moreSource§impl Debug for DeviceInformationStruct
impl Debug for DeviceInformationStruct
Source§impl Default for DeviceInformationStruct
impl Default for DeviceInformationStruct
Source§fn default() -> DeviceInformationStruct
fn default() -> DeviceInformationStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceInformationStruct
impl<'de> Deserialize<'de> for DeviceInformationStruct
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 DeviceInformationStruct
impl DeserializePayload for DeviceInformationStruct
fn deserialize(payload: &[u8]) -> Self
Source§impl PartialEq for DeviceInformationStruct
impl PartialEq for DeviceInformationStruct
Source§impl Serialize for DeviceInformationStruct
impl Serialize for DeviceInformationStruct
impl StructuralPartialEq for DeviceInformationStruct
Auto Trait Implementations§
impl Freeze for DeviceInformationStruct
impl RefUnwindSafe for DeviceInformationStruct
impl Send for DeviceInformationStruct
impl Sync for DeviceInformationStruct
impl Unpin for DeviceInformationStruct
impl UnwindSafe for DeviceInformationStruct
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