#[non_exhaustive]pub enum BlockTransferState {
Idle,
Submitted {
id: BlockRequestId,
mode: BlockTransferMode,
direction: BlockTransferDirection,
},
Complete {
id: BlockRequestId,
mode: BlockTransferMode,
direction: BlockTransferDirection,
},
Failed {
id: BlockRequestId,
mode: BlockTransferMode,
direction: BlockTransferDirection,
},
}Expand description
Observable state of one host block-transfer state machine.
Marked #[non_exhaustive]: queue-level intermediate states (e.g. tuning,
drain) may be added before 1.0; downstream match sites must keep a
_ => ... arm.
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.
Implementations§
Source§impl BlockTransferState
impl BlockTransferState
pub const fn id(self) -> Option<BlockRequestId>
pub const fn mode(self) -> Option<BlockTransferMode>
pub const fn direction(self) -> Option<BlockTransferDirection>
Trait Implementations§
Source§impl Clone for BlockTransferState
impl Clone for BlockTransferState
Source§fn clone(&self) -> BlockTransferState
fn clone(&self) -> BlockTransferState
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 BlockTransferState
impl Debug for BlockTransferState
Source§impl Default for BlockTransferState
impl Default for BlockTransferState
Source§fn default() -> BlockTransferState
fn default() -> BlockTransferState
Returns the “default value” for a type. Read more
Source§impl PartialEq for BlockTransferState
impl PartialEq for BlockTransferState
Source§fn eq(&self, other: &BlockTransferState) -> bool
fn eq(&self, other: &BlockTransferState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BlockTransferState
impl Eq for BlockTransferState
impl StructuralPartialEq for BlockTransferState
Auto Trait Implementations§
impl Freeze for BlockTransferState
impl RefUnwindSafe for BlockTransferState
impl Send for BlockTransferState
impl Sync for BlockTransferState
impl Unpin for BlockTransferState
impl UnsafeUnpin for BlockTransferState
impl UnwindSafe for BlockTransferState
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