#[non_exhaustive]pub enum BlockTransferDirection {
Read,
Write,
}Expand description
Direction of a block request.
Marked #[non_exhaustive] for forward compatibility (future variants like
Erase may join the queue contract).
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.
Trait Implementations§
Source§impl Clone for BlockTransferDirection
impl Clone for BlockTransferDirection
Source§fn clone(&self) -> BlockTransferDirection
fn clone(&self) -> BlockTransferDirection
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 BlockTransferDirection
impl Debug for BlockTransferDirection
Source§impl PartialEq for BlockTransferDirection
impl PartialEq for BlockTransferDirection
Source§fn eq(&self, other: &BlockTransferDirection) -> bool
fn eq(&self, other: &BlockTransferDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BlockTransferDirection
impl Eq for BlockTransferDirection
impl StructuralPartialEq for BlockTransferDirection
Auto Trait Implementations§
impl Freeze for BlockTransferDirection
impl RefUnwindSafe for BlockTransferDirection
impl Send for BlockTransferDirection
impl Sync for BlockTransferDirection
impl Unpin for BlockTransferDirection
impl UnsafeUnpin for BlockTransferDirection
impl UnwindSafe for BlockTransferDirection
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