Struct usb_host::descriptor::EndpointDescriptor
source · [−]#[repr(C, packed)]pub struct EndpointDescriptor {
pub b_length: u8,
pub b_descriptor_type: DescriptorType,
pub b_endpoint_address: u8,
pub bm_attributes: u8,
pub w_max_packet_size: u16,
pub b_interval: u8,
}
Fields
b_length: u8
b_descriptor_type: DescriptorType
b_endpoint_address: u8
bm_attributes: u8
w_max_packet_size: u16
b_interval: u8
Trait Implementations
sourceimpl Clone for EndpointDescriptor
impl Clone for EndpointDescriptor
sourcefn clone(&self) -> EndpointDescriptor
fn clone(&self) -> EndpointDescriptor
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 EndpointDescriptor
impl Debug for EndpointDescriptor
sourceimpl PartialEq<EndpointDescriptor> for EndpointDescriptor
impl PartialEq<EndpointDescriptor> for EndpointDescriptor
sourcefn eq(&self, other: &EndpointDescriptor) -> bool
fn eq(&self, other: &EndpointDescriptor) -> bool
impl Copy for EndpointDescriptor
impl StructuralPartialEq for EndpointDescriptor
Auto Trait Implementations
impl RefUnwindSafe for EndpointDescriptor
impl Send for EndpointDescriptor
impl Sync for EndpointDescriptor
impl Unpin for EndpointDescriptor
impl UnwindSafe for EndpointDescriptor
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