Struct rusb::EndpointDescriptor
source · 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