[][src]Struct rusb::EndpointDescriptor

pub struct EndpointDescriptor<'a> { /* fields omitted */ }

Describes an endpoint.

Implementations

impl<'a> EndpointDescriptor<'a>[src]

pub fn address(&self) -> u8[src]

Returns the endpoint's address.

pub fn number(&self) -> u8[src]

Returns the endpoint number.

pub fn direction(&self) -> Direction[src]

Returns the endpoint's direction.

pub fn transfer_type(&self) -> TransferType[src]

Returns the endpoint's transfer type.

pub fn sync_type(&self) -> SyncType[src]

Returns the endpoint's synchronisation mode.

The return value of this method is only valid for isochronous endpoints.

pub fn usage_type(&self) -> UsageType[src]

Returns the endpoint's usage type.

The return value of this method is only valid for isochronous endpoints.

pub fn max_packet_size(&self) -> u16[src]

Returns the endpoint's maximum packet size.

pub fn interval(&self) -> u8[src]

Returns the endpoint's polling interval.

pub fn extra(&'a self) -> Option<&'a [u8]>[src]

Returns the unknown 'extra' bytes that libusb does not understand.

Trait Implementations

impl<'a> Debug for EndpointDescriptor<'a>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.