pub struct StaticBufferProvider<const SLOTS: usize, const LEN: usize>(pub &'static BufferPool<SLOTS, LEN>);Expand description
BufferProvider backed by a 'static BufferPool (bare-metal path).
Tuple Fields§
§0: &'static BufferPool<SLOTS, LEN>Trait Implementations§
Source§impl<const SLOTS: usize, const LEN: usize> BufferProvider for StaticBufferProvider<SLOTS, LEN>
impl<const SLOTS: usize, const LEN: usize> BufferProvider for StaticBufferProvider<SLOTS, LEN>
Source§fn claim(&self) -> Option<BufferLease>
fn claim(&self) -> Option<BufferLease>
Claim one buffer, or
None when the pool is exhausted.Source§impl<const SLOTS: usize, const LEN: usize> Clone for StaticBufferProvider<SLOTS, LEN>
impl<const SLOTS: usize, const LEN: usize> Clone for StaticBufferProvider<SLOTS, LEN>
Source§fn clone(&self) -> StaticBufferProvider<SLOTS, LEN>
fn clone(&self) -> StaticBufferProvider<SLOTS, LEN>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const SLOTS: usize, const LEN: usize> Copy for StaticBufferProvider<SLOTS, LEN>
Auto Trait Implementations§
impl<const SLOTS: usize, const LEN: usize> !RefUnwindSafe for StaticBufferProvider<SLOTS, LEN>
impl<const SLOTS: usize, const LEN: usize> !UnwindSafe for StaticBufferProvider<SLOTS, LEN>
impl<const SLOTS: usize, const LEN: usize> Freeze for StaticBufferProvider<SLOTS, LEN>
impl<const SLOTS: usize, const LEN: usize> Send for StaticBufferProvider<SLOTS, LEN>
impl<const SLOTS: usize, const LEN: usize> Sync for StaticBufferProvider<SLOTS, LEN>
impl<const SLOTS: usize, const LEN: usize> Unpin for StaticBufferProvider<SLOTS, LEN>
impl<const SLOTS: usize, const LEN: usize> UnsafeUnpin for StaticBufferProvider<SLOTS, LEN>
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