pub struct MsgStmFlashLockSector {
pub sender_id: Option<u16>,
pub sector: u32,
}Expand description
Lock sector of STM flash memory (host => device)
The flash lock message locks a sector of the STM flash memory. The device replies with a MSG_FLASH_DONE message.
Fields§
§sender_id: Option<u16>The message sender_id
sector: u32Flash sector number to lock
Trait Implementations§
Source§impl Clone for MsgStmFlashLockSector
impl Clone for MsgStmFlashLockSector
Source§fn clone(&self) -> MsgStmFlashLockSector
fn clone(&self) -> MsgStmFlashLockSector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConcreteMessage for MsgStmFlashLockSector
impl ConcreteMessage for MsgStmFlashLockSector
Source§const MESSAGE_TYPE: u16 = 227
const MESSAGE_TYPE: u16 = 227
The message type.
Source§const MESSAGE_NAME: &'static str = "MSG_STM_FLASH_LOCK_SECTOR"
const MESSAGE_NAME: &'static str = "MSG_STM_FLASH_LOCK_SECTOR"
The message name.
Source§impl Debug for MsgStmFlashLockSector
impl Debug for MsgStmFlashLockSector
Source§impl<'de> Deserialize<'de> for MsgStmFlashLockSector
impl<'de> Deserialize<'de> for MsgStmFlashLockSector
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 FriendlyName for MsgStmFlashLockSector
impl FriendlyName for MsgStmFlashLockSector
fn friendly_name() -> &'static str
Source§impl From<MsgStmFlashLockSector> for Sbp
impl From<MsgStmFlashLockSector> for Sbp
Source§fn from(msg: MsgStmFlashLockSector) -> Self
fn from(msg: MsgStmFlashLockSector) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MsgStmFlashLockSector
impl PartialEq for MsgStmFlashLockSector
Source§fn eq(&self, other: &MsgStmFlashLockSector) -> bool
fn eq(&self, other: &MsgStmFlashLockSector) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SbpMessage for MsgStmFlashLockSector
impl SbpMessage for MsgStmFlashLockSector
Source§fn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
Source§fn message_type(&self) -> Option<u16>
fn message_type(&self) -> Option<u16>
Get the message type.
Source§fn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Tells you if the message is valid or if it is not a valid message and may need to be
special cased at certain points.
fn into_valid_msg(self) -> Result<Self, Invalid>
Source§fn gps_time(&self) -> Option<Result<MessageTime, GpsTimeError>>
fn gps_time(&self) -> Option<Result<MessageTime, GpsTimeError>>
Get the GPS time associated with the message.
Source§fn friendly_name(&self) -> &'static str
fn friendly_name(&self) -> &'static str
Get friendly name associated with the message.
Source§impl Serialize for MsgStmFlashLockSector
impl Serialize for MsgStmFlashLockSector
impl StructuralPartialEq for MsgStmFlashLockSector
Auto Trait Implementations§
impl Freeze for MsgStmFlashLockSector
impl RefUnwindSafe for MsgStmFlashLockSector
impl Send for MsgStmFlashLockSector
impl Sync for MsgStmFlashLockSector
impl Unpin for MsgStmFlashLockSector
impl UnsafeUnpin for MsgStmFlashLockSector
impl UnwindSafe for MsgStmFlashLockSector
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Event for Twhere
T: ConcreteMessage,
impl<T> Event for Twhere
T: ConcreteMessage,
Source§const MESSAGE_TYPES: &'static [u16] = const MESSAGE_TYPES: &'static [u16] = &[T::MESSAGE_TYPE];
const MESSAGE_TYPES: &'static [u16] = const MESSAGE_TYPES: &'static [u16] = &[T::MESSAGE_TYPE];
The message types that correspond to this event. An empty slice means all messages.