[][src]Enum maxim::actors::AidError

pub enum AidError {
    CantConvertToBincode,
    CantConvertFromBincode,
    ActorAlreadyStopped,
    AidNotLocal,
    SendTimedOut(Aid),
    UnableToSchedule,
}

Errors returned by the Aid

Variants

CantConvertToBincode

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.

CantConvertFromBincode

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.

ActorAlreadyStopped

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.

AidNotLocal

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.

UnableToSchedule

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]

impl Display for AidError[src]

impl Eq for AidError[src]

impl Error for AidError[src]

impl PartialEq<AidError> for AidError[src]

impl Serialize for AidError[src]

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]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,