pub enum Command {
Show 14 variants
EraseFlashAll,
EraseFlash {
address: usize,
length: usize,
},
ReadMemory {
address: usize,
length: usize,
},
WriteMemory {
address: usize,
data: Vec<u8>,
},
WriteMemoryWords {
address: usize,
words: Vec<u32>,
},
FillMemory,
ConfigureMemory {
address: usize,
},
FlashSecurityDisable,
GetProperty(Property),
ReceiveSbFile {
data: Vec<u8>,
},
Call,
Reset,
FlashReadResource,
Keystore(KeystoreOperation),
}Variants§
EraseFlashAll
EraseFlash
ReadMemory
WriteMemory
WriteMemoryWords
Converts the words to little-endian, then delegates to WriteMemory
FillMemory
ConfigureMemory
FlashSecurityDisable
GetProperty(Property)
ReceiveSbFile
Call
Reset
FlashReadResource
Keystore(KeystoreOperation)
Implementations§
Source§impl Command
impl Command
pub fn data_phase(&self) -> DataPhase
pub fn parameters(&self) -> Vec<u32>
pub fn tag(&self) -> CommandTag
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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 Ord for Command
impl Ord for Command
Source§impl PartialOrd for Command
impl PartialOrd for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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