Struct embassy_usb::UsbBufferReport
source · pub struct UsbBufferReport {
pub device_descriptor_used: usize,
pub config_descriptor_used: usize,
pub bos_descriptor_used: usize,
pub msos_descriptor_used: Option<usize>,
pub control_buffer_size: usize,
}
Expand description
A report of the used size of the runtime allocated buffers
Fields§
§device_descriptor_used: usize
Number of device descriptor bytes used
config_descriptor_used: usize
Number of config descriptor bytes used
bos_descriptor_used: usize
Number of bos descriptor bytes used
msos_descriptor_used: Option<usize>
Number of msos descriptor bytes used
Will be None
if the “msos-descriptor” feature is not active.
Otherwise will return Some(bytes).
control_buffer_size: usize
Size of the control buffer
Trait Implementations§
source§impl Clone for UsbBufferReport
impl Clone for UsbBufferReport
source§fn clone(&self) -> UsbBufferReport
fn clone(&self) -> UsbBufferReport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UsbBufferReport
impl Debug for UsbBufferReport
source§impl Format for UsbBufferReport
impl Format for UsbBufferReport
source§impl PartialEq<UsbBufferReport> for UsbBufferReport
impl PartialEq<UsbBufferReport> for UsbBufferReport
source§fn eq(&self, other: &UsbBufferReport) -> bool
fn eq(&self, other: &UsbBufferReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UsbBufferReport
impl Eq for UsbBufferReport
impl StructuralEq for UsbBufferReport
impl StructuralPartialEq for UsbBufferReport
Auto Trait Implementations§
impl RefUnwindSafe for UsbBufferReport
impl Send for UsbBufferReport
impl Sync for UsbBufferReport
impl Unpin for UsbBufferReport
impl UnwindSafe for UsbBufferReport
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