Struct erdnuss_comms::frame_pool::FrameStorage
source · pub struct FrameStorage<const N: usize> { /* private fields */ }Expand description
Storage for exactly N frames
Implementations§
source§impl<const N: usize> FrameStorage<N>
impl<const N: usize> FrameStorage<N>
sourcepub fn take(&'static self) -> Option<RawFrameSlice>
pub fn take(&'static self) -> Option<RawFrameSlice>
Attempt to take the storage as a RawFrameSlice
The first call will return Some, all later calls will return None. Uses a critical section to ensure it only works once, even on targets without atomics
Auto Trait Implementations§
impl<const N: usize> !RefUnwindSafe for FrameStorage<N>
impl<const N: usize> Send for FrameStorage<N>
impl<const N: usize> Sync for FrameStorage<N>
impl<const N: usize> Unpin for FrameStorage<N>
impl<const N: usize> UnwindSafe for FrameStorage<N>
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