Skip to main content

State

Trait State 

Source
pub trait State<Out = Never, Birth = NoBirths, Err = Never>
where Birth: BirthMode,
{ type Addr: Address; type Msg; // Required method fn handle( &mut self, from: Self::Addr, message: Self::Msg, ) -> Acted<Self::Addr, Never, Vec<Delivery<Self::Addr, Out>>, Birth, Err>; }

Required Associated Types§

Required Methods§

Source

fn handle( &mut self, from: Self::Addr, message: Self::Msg, ) -> Acted<Self::Addr, Never, Vec<Delivery<Self::Addr, Out>>, Birth, Err>

Fold a user message into Bombay’s typed actor transition effects.

§Errors

Returns the state’s declared controlled failure.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S, A: Address, M, O, Br: BirthMode, E> State<O, Br, E> for FnState<S, A, M, O, Br, E>

Source§

type Addr = A

Source§

type Msg = M