pub struct DeckMemory { /* private fields */ }Expand description
Describes the content of a Crazyflie deck memory used to access the deck firmware and bootloaders
Implementations§
Source§impl DeckMemory
impl DeckMemory
Sourcepub fn sections(&self) -> &[DeckMemorySection]
pub fn sections(&self) -> &[DeckMemorySection]
Get all memory sections available in this deck memory.
§Returns
A slice of DeckMemorySection representing all available sections.
Trait Implementations§
Source§impl Debug for DeckMemory
impl Debug for DeckMemory
Source§impl FromMemoryBackend for DeckMemory
impl FromMemoryBackend for DeckMemory
Source§async fn from_memory_backend(memory: MemoryBackend) -> Result<Self>
async fn from_memory_backend(memory: MemoryBackend) -> Result<Self>
Create a memory-specific type from a
MemoryBackend. When created the
memory is automatically read to populate the fields of the type. Read moreSource§async fn initialize_memory_backend(_memory: MemoryBackend) -> Result<Self>
async fn initialize_memory_backend(_memory: MemoryBackend) -> Result<Self>
Get a specific memory by its ID and initialize it according to the defaults. Note that the
values will not be written to the memory by default, the user needs to handle this. Read more
Source§fn close_memory(self) -> MemoryBackend
fn close_memory(self) -> MemoryBackend
Close the memory and return the backend to the subsystem Read more
Auto Trait Implementations§
impl Freeze for DeckMemory
impl !RefUnwindSafe for DeckMemory
impl Send for DeckMemory
impl Sync for DeckMemory
impl Unpin for DeckMemory
impl UnsafeUnpin for DeckMemory
impl !UnwindSafe for DeckMemory
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