Enum eventsourced::HandleCmdError
source · pub enum HandleCmdError<E>where
E: EventSourced,{
Internal(String),
Handler(E::Error),
}Expand description
Error from an EntityRef.
Variants§
Internal(String)
A command cannot be sent from an EntityRef to its entity or the result cannot be received from its entity.
Handler(E::Error)
Command handler result.
Trait Implementations§
source§impl<E> Debug for HandleCmdError<E>
impl<E> Debug for HandleCmdError<E>
source§impl<'de, E> Deserialize<'de> for HandleCmdError<E>
impl<'de, E> Deserialize<'de> for HandleCmdError<E>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<E> Display for HandleCmdError<E>where
E: EventSourced,
impl<E> Display for HandleCmdError<E>where
E: EventSourced,
source§impl<E> Error for HandleCmdError<E>
impl<E> Error for HandleCmdError<E>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<E> Serialize for HandleCmdError<E>
impl<E> Serialize for HandleCmdError<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for HandleCmdError<E>
impl<E> Send for HandleCmdError<E>
impl<E> Sync for HandleCmdError<E>
impl<E> Unpin for HandleCmdError<E>
impl<E> UnwindSafe for HandleCmdError<E>
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