Struct CommandFailure

pub struct CommandFailure<E> {
    pub id: u64,
    pub error: E,
}
Expand description

A consumed command’s caller-supplied ID and original, owned domain error.

No Clone, Debug, or std::error::Error bound is required to use the queue.

Fields§

§id: u64

The ID passed to FallibleCommandBuffer::push.

§error: E

The command’s error; mutations made before returning it remain in the world.

Trait Implementations§

§

impl<E> Debug for CommandFailure<E>
where E: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<E> PartialEq for CommandFailure<E>
where E: PartialEq,

§

fn eq(&self, other: &CommandFailure<E>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<E> Eq for CommandFailure<E>
where E: Eq,

§

impl<E> StructuralPartialEq for CommandFailure<E>

Auto Trait Implementations§

§

impl<E> Freeze for CommandFailure<E>
where E: Freeze,

§

impl<E> RefUnwindSafe for CommandFailure<E>
where E: RefUnwindSafe,

§

impl<E> Send for CommandFailure<E>
where E: Send,

§

impl<E> Sync for CommandFailure<E>
where E: Sync,

§

impl<E> Unpin for CommandFailure<E>
where E: Unpin,

§

impl<E> UnwindSafe for CommandFailure<E>
where E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.