#[non_exhaustive]pub enum DataDirection {
None,
Read,
Write,
}Expand description
Direction of the data phase that follows a command, if any.
Marked #[non_exhaustive]: bidirectional / control-stream variants may be
added before 1.0.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No data phase follows this command.
Read
The host reads data from the card after the command response.
Write
The host writes data to the card after the command response.
Implementations§
Trait Implementations§
Source§impl Clone for DataDirection
impl Clone for DataDirection
Source§fn clone(&self) -> DataDirection
fn clone(&self) -> DataDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataDirection
impl Debug for DataDirection
Source§impl PartialEq for DataDirection
impl PartialEq for DataDirection
Source§fn eq(&self, other: &DataDirection) -> bool
fn eq(&self, other: &DataDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DataDirection
impl Eq for DataDirection
impl StructuralPartialEq for DataDirection
Auto Trait Implementations§
impl Freeze for DataDirection
impl RefUnwindSafe for DataDirection
impl Send for DataDirection
impl Sync for DataDirection
impl Unpin for DataDirection
impl UnsafeUnpin for DataDirection
impl UnwindSafe for DataDirection
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