pub struct EndpointDescriptor<'a> { /* private fields */ }
Expand description
Describes an endpoint.
Implementations§
Source§impl<'a> EndpointDescriptor<'a>
impl<'a> EndpointDescriptor<'a>
Sourcepub fn descriptor_type(&self) -> u8
pub fn descriptor_type(&self) -> u8
Returns the descriptor type
Sourcepub fn transfer_type(&self) -> TransferType
pub fn transfer_type(&self) -> TransferType
Returns the endpoint’s transfer type.
Sourcepub fn sync_type(&self) -> SyncType
pub fn sync_type(&self) -> SyncType
Returns the endpoint’s synchronisation mode.
The return value of this method is only valid for isochronous endpoints.
Sourcepub fn usage_type(&self) -> UsageType
pub fn usage_type(&self) -> UsageType
Returns the endpoint’s usage type.
The return value of this method is only valid for isochronous endpoints.
Sourcepub fn max_packet_size(&self) -> u16
pub fn max_packet_size(&self) -> u16
Returns the endpoint’s maximum packet size.
Sourcepub fn extra(&'a self) -> Option<&'a [u8]>
pub fn extra(&'a self) -> Option<&'a [u8]>
Returns the unknown ‘extra’ bytes that libusb does not understand.
Sourcepub fn refresh(&self) -> u8
pub fn refresh(&self) -> u8
For audio devices only: return the rate at which synchronization feedback is provided.
Sourcepub fn synch_address(&self) -> u8
pub fn synch_address(&self) -> u8
For audio devices only: return the address if the synch endpoint.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EndpointDescriptor<'a>
impl<'a> RefUnwindSafe for EndpointDescriptor<'a>
impl<'a> !Send for EndpointDescriptor<'a>
impl<'a> !Sync for EndpointDescriptor<'a>
impl<'a> Unpin for EndpointDescriptor<'a>
impl<'a> UnwindSafe for EndpointDescriptor<'a>
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