[][src]Struct stateright::actor::ordered_reliable_link::ActorWrapper

pub struct ActorWrapper<A: Actor> {
    pub resend_interval: Range<Duration>,
    pub wrapped_actor: A,
}

Wraps an actor with logic to:

  1. Maintain message order.
  2. Resend lost messages.
  3. Avoid message redelivery.

Fields

resend_interval: Range<Duration>wrapped_actor: A

Implementations

impl<A: Actor> ActorWrapper<A>[src]

pub fn with_default_timeout(wrapped_actor: A) -> Self[src]

Trait Implementations

impl<A: Actor> Actor for ActorWrapper<A> where
    A::Msg: Hash
[src]

type Msg = MsgWrapper<A::Msg>

The type of messages sent and received by the actor. Read more

type State = StateWrapper<A::Msg, A::State>

The type of state maintained by the actor. Read more

impl<A: Clone + Actor> Clone for ActorWrapper<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for ActorWrapper<A> where
    A: RefUnwindSafe
[src]

impl<A> Send for ActorWrapper<A> where
    A: Send
[src]

impl<A> Sync for ActorWrapper<A> where
    A: Sync
[src]

impl<A> Unpin for ActorWrapper<A> where
    A: Unpin
[src]

impl<A> UnwindSafe for ActorWrapper<A> where
    A: UnwindSafe
[src]

Blanket Implementations

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,