pub enum QueueFaultBehavior<T> {
Update(T),
Drop,
Delay(Duration),
Panic(String),
CustomPayload(Vec<u8>),
}
Expand description
Supported fault behaviour for NVMe queues
Variants§
Update(T)
Update the queue entry with the returned data
Drop
Drop the queue entry
Delay(Duration)
Delay
Panic(String)
Panic
CustomPayload(Vec<u8>)
Update a completion payload
Trait Implementations§
Source§impl<T: Clone> Clone for QueueFaultBehavior<T>
impl<T: Clone> Clone for QueueFaultBehavior<T>
Source§fn clone(&self) -> QueueFaultBehavior<T>
fn clone(&self) -> QueueFaultBehavior<T>
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<T: Debug> Debug for QueueFaultBehavior<T>
impl<T: Debug> Debug for QueueFaultBehavior<T>
Source§impl<T> DefaultEncoding for QueueFaultBehavior<T>
impl<T> DefaultEncoding for QueueFaultBehavior<T>
Source§impl<'encoding, T> OneofDecode<'encoding, Resource> for QueueFaultBehavior<T>where
T: DefaultEncoding,
T::Encoding: FieldDecode<'encoding, T, Resource>,
impl<'encoding, T> OneofDecode<'encoding, Resource> for QueueFaultBehavior<T>where
T: DefaultEncoding,
T::Encoding: FieldDecode<'encoding, T, Resource>,
Source§fn read_variant(
item: &mut InplaceOption<'_, Self>,
n: u32,
field: FieldReader<'encoding, '_, Resource>,
) -> Result<()>
fn read_variant( item: &mut InplaceOption<'_, Self>, n: u32, field: FieldReader<'encoding, '_, Resource>, ) -> Result<()>
Read the specified variant from the reader.
Source§impl<T> OneofEncode<Resource> for QueueFaultBehavior<T>where
T: DefaultEncoding,
T::Encoding: FieldEncode<T, Resource>,
impl<T> OneofEncode<Resource> for QueueFaultBehavior<T>where
T: DefaultEncoding,
T::Encoding: FieldEncode<T, Resource>,
Source§fn write_variant(self, writer: MessageWriter<'_, '_, Resource>)
fn write_variant(self, writer: MessageWriter<'_, '_, Resource>)
Write the variant to the writer.
Source§fn compute_variant_size(&mut self, sizer: MessageSizer<'_>)
fn compute_variant_size(&mut self, sizer: MessageSizer<'_>)
Compute the size of the variant.
Auto Trait Implementations§
impl<T> Freeze for QueueFaultBehavior<T>where
T: Freeze,
impl<T> RefUnwindSafe for QueueFaultBehavior<T>where
T: RefUnwindSafe,
impl<T> Send for QueueFaultBehavior<T>where
T: Send,
impl<T> Sync for QueueFaultBehavior<T>where
T: Sync,
impl<T> Unpin for QueueFaultBehavior<T>where
T: Unpin,
impl<T> UnwindSafe for QueueFaultBehavior<T>where
T: UnwindSafe,
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> 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
].