pub struct MemoryDevice {
pub memory_id: u8,
pub memory_type: MemoryType,
pub size: u32,
pub serial: Option<Vec<u8>>,
}Expand description
Description of a memory in the Crazyflie
Fields§
§memory_id: u8Unique identifier for this memory subsystem (used when reading/writing/querying)
memory_type: MemoryTypeType of memory
size: u32Size of the memory in bytes
serial: Option<Vec<u8>>Serial number of the memory
Trait Implementations§
Source§impl Clone for MemoryDevice
impl Clone for MemoryDevice
Source§fn clone(&self) -> MemoryDevice
fn clone(&self) -> MemoryDevice
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 moreAuto Trait Implementations§
impl Freeze for MemoryDevice
impl RefUnwindSafe for MemoryDevice
impl Send for MemoryDevice
impl Sync for MemoryDevice
impl Unpin for MemoryDevice
impl UnwindSafe for MemoryDevice
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