Struct usb_host::setup::SetupPacket
source · [−]#[repr(C, packed)]pub struct SetupPacket {
pub bm_request_type: RequestType,
pub b_request: RequestCode,
pub w_value: WValue,
pub w_index: u16,
pub w_length: u16,
}
Fields
bm_request_type: RequestType
b_request: RequestCode
w_value: WValue
w_index: u16
w_length: u16
Trait Implementations
sourceimpl Clone for SetupPacket
impl Clone for SetupPacket
sourcefn clone(&self) -> SetupPacket
fn clone(&self) -> SetupPacket
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SetupPacket
impl Debug for SetupPacket
impl Copy for SetupPacket
Auto Trait Implementations
impl RefUnwindSafe for SetupPacket
impl Send for SetupPacket
impl Sync for SetupPacket
impl Unpin for SetupPacket
impl UnwindSafe for SetupPacket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more