#[repr(C, packed(1))]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§
Source§impl Clone for SetupPacket
impl Clone for SetupPacket
Source§fn clone(&self) -> SetupPacket
fn clone(&self) -> SetupPacket
Returns a duplicate 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 SetupPacket
impl Debug for SetupPacket
impl Copy for SetupPacket
Auto Trait Implementations§
impl Freeze for SetupPacket
impl RefUnwindSafe for SetupPacket
impl Send for SetupPacket
impl Sync for SetupPacket
impl Unpin for SetupPacket
impl UnwindSafe for SetupPacket
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