[−][src]Enum maxim::actors::AidError
Errors returned by the Aid
Variants
This error is returned when a message cannot be converted to bincode. This will happen if the message is not Serde serializable and the user has not implemented ActorMessage to provide the correct implementation.
This error is returned when a message cannot be converted from bincode. This will happen if the message is not Serde serializable and the user has not implemented ActorMessage to provide the correct implementation.
Error sent when attempting to send to an actor that has already been stopped. A stopped
actor cannot accept any more messages and is shut down. The holder of an Aid
to
a stopped actor should throw the Aid
away as the actor can never be started again.
Error returned when an Aid is not local and a user is trying to do operations that only work on local Aid instances.
SendTimedOut(Aid)
Used when unable to send to an actor's message channel within the scheduled timeout configured in the actor system. This could result from the actor's channel being too small to accommodate the message flow, the lack of thread count to process messages fast enough to keep up with the flow or something wrong with the actor itself that it is taking too long to clear the messages.
Used when unable to schedule the actor for work in the work channel. This could be a result of having a work channel that is too small to accommodate the number of actors being concurrently scheduled, not enough threads to process actors in the channel fast enough or simply an actor that misbehaves, causing dispatcher threads to take a lot of time or not finish at all.
Trait Implementations
impl Debug for AidError
[src]
impl<'de> Deserialize<'de> for AidError
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for AidError
[src]
impl Eq for AidError
[src]
impl Error for AidError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl PartialEq<AidError> for AidError
[src]
impl Serialize for AidError
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for AidError
[src]
impl StructuralPartialEq for AidError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AidError
impl Send for AidError
impl Sync for AidError
impl Unpin for AidError
impl !UnwindSafe for AidError
Blanket Implementations
impl<T> ActorMessage for T where
T: 'static + Serialize + DeserializeOwned + Sync + Send + Any + ?Sized,
[src]
T: 'static + Serialize + DeserializeOwned + Sync + Send + Any + ?Sized,
fn to_bincode(&Self) -> Result<Vec<u8>, Box<dyn Error + 'static>>
[src]
fn from_bincode(&Vec<u8>) -> Result<T, Box<dyn Error + 'static>>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,