pub struct BufferAllocator { /* private fields */ }Implementations§
Source§impl BufferAllocator
impl BufferAllocator
Sourcepub fn allocate_buffer(&mut self) -> UsbResult<*mut u8>
pub fn allocate_buffer(&mut self) -> UsbResult<*mut u8>
Allocates a fixed buffer of ALLOC_SIZE_MAX_PER_EP
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BufferAllocator
impl RefUnwindSafe for BufferAllocator
impl Send for BufferAllocator
impl Sync for BufferAllocator
impl Unpin for BufferAllocator
impl UnsafeUnpin for BufferAllocator
impl !UnwindSafe for BufferAllocator
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