Enum usb_device::prelude::BuilderError
source · pub enum BuilderError {
TooManyLanguages,
InvalidPacketSize,
PowerTooHigh,
}
Expand description
Error type for the USB device builder
Variants§
TooManyLanguages
String descriptors were provided in more languages than are supported
InvalidPacketSize
Control endpoint can only be 8, 16, 32, or 64 byte max packet size
PowerTooHigh
Configuration specifies higher USB power draw than allowed
Trait Implementations§
source§impl Clone for BuilderError
impl Clone for BuilderError
source§fn clone(&self) -> BuilderError
fn clone(&self) -> BuilderError
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 BuilderError
impl Debug for BuilderError
source§impl PartialEq for BuilderError
impl PartialEq for BuilderError
source§fn eq(&self, other: &BuilderError) -> bool
fn eq(&self, other: &BuilderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BuilderError
impl StructuralPartialEq for BuilderError
Auto Trait Implementations§
impl RefUnwindSafe for BuilderError
impl Send for BuilderError
impl Sync for BuilderError
impl Unpin for BuilderError
impl UnwindSafe for BuilderError
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