Struct MinimumRecoveryTimeDescriptor
#[repr(C, packed(1))]pub struct MinimumRecoveryTimeDescriptor { /* private fields */ }
Expand description
Table 16. Microsoft OS 2.0 minimum USB recovery time descriptor.
Implementations§
§impl MinimumRecoveryTimeDescriptor
impl MinimumRecoveryTimeDescriptor
pub fn new(
resume_recovery_time: u8,
resume_signaling_time: u8,
) -> MinimumRecoveryTimeDescriptor
pub fn new( resume_recovery_time: u8, resume_signaling_time: u8, ) -> MinimumRecoveryTimeDescriptor
Times are in milliseconds.
resume_recovery_time
must be >= 0 and <= 10.
resume_signaling_time
must be >= 1 and <= 20.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MinimumRecoveryTimeDescriptor
impl RefUnwindSafe for MinimumRecoveryTimeDescriptor
impl Send for MinimumRecoveryTimeDescriptor
impl Sync for MinimumRecoveryTimeDescriptor
impl Unpin for MinimumRecoveryTimeDescriptor
impl UnwindSafe for MinimumRecoveryTimeDescriptor
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