pub struct UsbDeviceBuffers<const CONFIG: usize = 256, const BOS: usize = 256, const CONTROL: usize = 64, const MSOS: usize = 256> {
pub config_descriptor: [u8; CONFIG],
pub bos_descriptor: [u8; BOS],
pub control_buf: [u8; CONTROL],
pub msos_descriptor: [u8; MSOS],
}
Expand description
A generically sized storage type for buffers
Fields§
§config_descriptor: [u8; CONFIG]
Config descriptor storage
bos_descriptor: [u8; BOS]
BOS descriptor storage
control_buf: [u8; CONTROL]
CONTROL endpoint buffer storage
msos_descriptor: [u8; MSOS]
MSOS descriptor buffer storage
Implementations§
Auto Trait Implementations§
impl<const CONFIG: usize, const BOS: usize, const CONTROL: usize, const MSOS: usize> Freeze for UsbDeviceBuffers<CONFIG, BOS, CONTROL, MSOS>
impl<const CONFIG: usize, const BOS: usize, const CONTROL: usize, const MSOS: usize> RefUnwindSafe for UsbDeviceBuffers<CONFIG, BOS, CONTROL, MSOS>
impl<const CONFIG: usize, const BOS: usize, const CONTROL: usize, const MSOS: usize> Send for UsbDeviceBuffers<CONFIG, BOS, CONTROL, MSOS>
impl<const CONFIG: usize, const BOS: usize, const CONTROL: usize, const MSOS: usize> Sync for UsbDeviceBuffers<CONFIG, BOS, CONTROL, MSOS>
impl<const CONFIG: usize, const BOS: usize, const CONTROL: usize, const MSOS: usize> Unpin for UsbDeviceBuffers<CONFIG, BOS, CONTROL, MSOS>
impl<const CONFIG: usize, const BOS: usize, const CONTROL: usize, const MSOS: usize> UnwindSafe for UsbDeviceBuffers<CONFIG, BOS, CONTROL, MSOS>
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