pub struct AdminQueueFaultConfig {
pub admin_submission_queue_faults: Vec<(CommandMatch, QueueFaultBehavior<Command>)>,
pub admin_completion_queue_faults: Vec<(CommandMatch, QueueFaultBehavior<Completion>)>,
}
Expand description
A buildable fault configuration
Fields§
§admin_submission_queue_faults: Vec<(CommandMatch, QueueFaultBehavior<Command>)>
A map of NVME opcodes to the submission fault behavior for each. (This would ideally be a HashMap
, but mesh
doesn’t support that type. Given that this is not performance sensitive, the lookup is okay)
admin_completion_queue_faults: Vec<(CommandMatch, QueueFaultBehavior<Completion>)>
A map of NVME opcodes to the completion fault behavior for each.
Implementations§
Source§impl AdminQueueFaultConfig
impl AdminQueueFaultConfig
Sourcepub fn with_submission_queue_fault(
self,
pattern: CommandMatch,
behaviour: QueueFaultBehavior<Command>,
) -> Self
pub fn with_submission_queue_fault( self, pattern: CommandMatch, behaviour: QueueFaultBehavior<Command>, ) -> Self
Add a CommandMatch
-> QueueFaultBehavior
mapping for the submission queue.
§Panics
Panics if an identical CommandMatch
has already been configured.
Sourcepub fn with_completion_queue_fault(
self,
pattern: CommandMatch,
behaviour: QueueFaultBehavior<Completion>,
) -> Self
pub fn with_completion_queue_fault( self, pattern: CommandMatch, behaviour: QueueFaultBehavior<Completion>, ) -> Self
Add a CommandMatch
-> QueueFaultBehavior
mapping for the completion queue.
§Panics
Panics if an identical CommandMatch
has already been configured.
Trait Implementations§
Source§impl Clone for AdminQueueFaultConfig
impl Clone for AdminQueueFaultConfig
Source§fn clone(&self) -> AdminQueueFaultConfig
fn clone(&self) -> AdminQueueFaultConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl DefaultEncoding for AdminQueueFaultConfig
impl DefaultEncoding for AdminQueueFaultConfig
Source§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for AdminQueueFaultConfig
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for AdminQueueFaultConfig
Source§impl StructEncodeMetadata<Resource> for AdminQueueFaultConfig
impl StructEncodeMetadata<Resource> for AdminQueueFaultConfig
Auto Trait Implementations§
impl Freeze for AdminQueueFaultConfig
impl RefUnwindSafe for AdminQueueFaultConfig
impl Send for AdminQueueFaultConfig
impl Sync for AdminQueueFaultConfig
impl Unpin for AdminQueueFaultConfig
impl UnwindSafe for AdminQueueFaultConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size
].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message
].