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 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.