Enum Speed
pub enum Speed {
Low,
Full,
High,
}Available on crate feature
usb only.Expand description
Speed of a device or port
Variants§
Implementations§
§impl Speed
impl Speed
pub const fn max_packet_size(self) -> u16
pub const fn max_packet_size(self) -> u16
Provides the default max_packet_size for a given port speed
Trait Implementations§
impl Copy for Speed
impl Eq for Speed
impl StructuralPartialEq for Speed
Auto Trait Implementations§
impl Freeze for Speed
impl RefUnwindSafe for Speed
impl Send for Speed
impl Sync for Speed
impl Unpin for Speed
impl UnsafeUnpin for Speed
impl UnwindSafe for Speed
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