pub struct EndpointDescriptor {
pub address: u8,
pub max_packet_size: u16,
pub transfer_type: EndpointType,
pub direction: Direction,
pub packets_per_microframe: usize,
pub interval: u8,
}Fields§
§address: u8§max_packet_size: u16§transfer_type: EndpointType§direction: Direction§packets_per_microframe: usize§interval: u8Implementations§
Trait Implementations§
Source§impl Clone for EndpointDescriptor
impl Clone for EndpointDescriptor
Source§fn clone(&self) -> EndpointDescriptor
fn clone(&self) -> EndpointDescriptor
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 EndpointDescriptor
impl Debug for EndpointDescriptor
Source§impl From<EndpointDescriptor<'_>> for EndpointDescriptor
impl From<EndpointDescriptor<'_>> for EndpointDescriptor
Source§fn from(desc: EndpointDescriptor<'_>) -> EndpointDescriptor
fn from(desc: EndpointDescriptor<'_>) -> EndpointDescriptor
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EndpointDescriptor
impl RefUnwindSafe for EndpointDescriptor
impl Send for EndpointDescriptor
impl Sync for EndpointDescriptor
impl Unpin for EndpointDescriptor
impl UnwindSafe for EndpointDescriptor
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