pub struct FaultConfiguration {
pub fault_active: Cell<bool>,
pub admin_fault: AdminQueueFaultConfig,
pub pci_fault: PciFaultConfig,
}
Expand description
A simple fault configuration with admin submission queue support
Fields§
§fault_active: Cell<bool>
Fault active state
admin_fault: AdminQueueFaultConfig
Fault to apply to the admin queues
pci_fault: PciFaultConfig
Fault to apply to management layer of the controller
Implementations§
Source§impl FaultConfiguration
impl FaultConfiguration
Sourcepub fn with_pci_fault(self, pci_fault: PciFaultConfig) -> Self
pub fn with_pci_fault(self, pci_fault: PciFaultConfig) -> Self
Add a PCI fault configuration to the fault configuration
Sourcepub fn with_admin_queue_fault(self, admin_fault: AdminQueueFaultConfig) -> Self
pub fn with_admin_queue_fault(self, admin_fault: AdminQueueFaultConfig) -> Self
Add an admin queue fault configuration to the fault configuration
Trait Implementations§
Source§impl Clone for FaultConfiguration
impl Clone for FaultConfiguration
Source§fn clone(&self) -> FaultConfiguration
fn clone(&self) -> FaultConfiguration
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 FaultConfiguration
impl DefaultEncoding for FaultConfiguration
Source§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for FaultConfiguration
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for FaultConfiguration
Source§impl StructEncodeMetadata<Resource> for FaultConfiguration
impl StructEncodeMetadata<Resource> for FaultConfiguration
Auto Trait Implementations§
impl Freeze for FaultConfiguration
impl !RefUnwindSafe for FaultConfiguration
impl Send for FaultConfiguration
impl Sync for FaultConfiguration
impl Unpin for FaultConfiguration
impl !UnwindSafe for FaultConfiguration
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
].