Enum fluxion::types::errors::ActorError
source · pub enum ActorError<E: Send + Sync + 'static> {
CustomError(E),
MessageReceiveError,
InvalidMessageType,
SendError(SendError),
}
Expand description
ActorError
The error type returned by [Actor
]s, which allows for a custom error type via generics.
Variants§
Trait Implementations§
source§impl<'de, E> Deserialize<'de> for ActorError<E>where
E: Deserialize<'de> + Send + Sync + 'static,
impl<'de, E> Deserialize<'de> for ActorError<E>where E: Deserialize<'de> + Send + Sync + 'static,
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: PartialEq + Send + Sync + 'static> PartialEq for ActorError<E>
impl<E: PartialEq + Send + Sync + 'static> PartialEq for ActorError<E>
source§fn eq(&self, other: &ActorError<E>) -> bool
fn eq(&self, other: &ActorError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Send + Sync + 'static> StructuralPartialEq for ActorError<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for ActorError<E>where E: RefUnwindSafe,
impl<E> Send for ActorError<E>
impl<E> Sync for ActorError<E>
impl<E> Unpin for ActorError<E>where E: Unpin,
impl<E> UnwindSafe for ActorError<E>where E: 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