pub struct EndpointInfo {
pub address: u8,
pub attributes: u8,
pub max_packet_size: u16,
pub interval: u8,
}Expand description
Endpoint descriptor fields needed by drivers.
Fields§
§address: u8§attributes: u8§max_packet_size: u16§interval: u8Implementations§
Source§impl EndpointInfo
impl EndpointInfo
pub fn is_bulk_in(&self) -> bool
pub fn is_bulk_out(&self) -> bool
pub fn is_interrupt_in(&self) -> bool
Trait Implementations§
Source§impl Clone for EndpointInfo
impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
fn clone(&self) -> EndpointInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EndpointInfo
Source§impl Debug for EndpointInfo
impl Debug for EndpointInfo
impl Eq for EndpointInfo
Source§impl PartialEq for EndpointInfo
impl PartialEq for EndpointInfo
Source§fn eq(&self, other: &EndpointInfo) -> bool
fn eq(&self, other: &EndpointInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
impl Freeze for EndpointInfo
impl RefUnwindSafe for EndpointInfo
impl Send for EndpointInfo
impl Sync for EndpointInfo
impl Unpin for EndpointInfo
impl UnsafeUnpin for EndpointInfo
impl UnwindSafe for EndpointInfo
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