pub struct OwMemory { /* private fields */ }Expand description
Describes the content of a Crazyflie decks 1-wire memory
Implementations§
Source§impl OwMemory
impl OwMemory
Sourcepub fn set_used_pins(&mut self, used_pins: u32)
pub fn set_used_pins(&mut self, used_pins: u32)
Sets the bitmap of used GPIO pins
Sourcepub fn elements_mut(&mut self) -> &mut HashMap<String, String>
pub fn elements_mut(&mut self) -> &mut HashMap<String, String>
Gets a mutable reference to the elements map
Sourcepub fn set_elements(&mut self, elements: HashMap<String, String>)
pub fn set_elements(&mut self, elements: HashMap<String, String>)
Sets the elements map
Trait Implementations§
Source§impl FromMemoryBackend for OwMemory
impl FromMemoryBackend for OwMemory
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 OwMemory
impl RefUnwindSafe for OwMemory
impl Send for OwMemory
impl Sync for OwMemory
impl Unpin for OwMemory
impl UnwindSafe for OwMemory
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