[−][src]Enum usbd_bulk_only_transport::TransferState
Variants
There is no data transfer underway, we are either waiting for a command or
about to send ZLP/CSW after a transfer has finished. We might be sending a CSW
so bytes_remaining
and empty
use the same logic as SendingDataToHost
We are receving data from the host, bytes_available
indicates how many bytes
have been read into the buffer. full
indicates we're out of buffer space and
need the caller to process the data before we can do more work. done
indicates
data_residue has reached 0 and there won't be any more data read
We are sending data to the host, bytes_remaining
indicates how many bytes are
still in the buffer. empty
indicates the buffer is empty and we can't do any
more work before the caller gives us more data
Trait Implementations
impl Clone for TransferState
[src]
fn clone(&self) -> TransferState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TransferState
[src]
impl Debug for TransferState
[src]
impl Eq for TransferState
[src]
impl PartialEq<TransferState> for TransferState
[src]
fn eq(&self, other: &TransferState) -> bool
[src]
fn ne(&self, other: &TransferState) -> bool
[src]
impl StructuralEq for TransferState
[src]
impl StructuralPartialEq for TransferState
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,