pub struct Pure<S: Handler<O, Br, E>, O = Never, Br: BirthMode = NoBirths, E = Never> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S, O, Br, E> Behavior for Pure<S, O, Br, E>
impl<S, O, Br, E> Behavior for Pure<S, O, Br, E>
type Addr = <S as Handler<O, Br, E>>::Addr
type Msg = <S as Handler<O, Br, E>>::Msg
type Event = User<<S as Handler<O, Br, E>>::Addr, <S as Handler<O, Br, E>>::Msg>
type Sends = Vec<Delivery<<S as Handler<O, Br, E>>::Addr, O>>
type Ph = Never
type Error = E
type Birth = Br
Source§fn init(&mut self) -> Acted<S::Addr, Never, Vec<Delivery<S::Addr, O>>, Br, E>
fn init(&mut self) -> Acted<S::Addr, Never, Vec<Delivery<S::Addr, O>>, Br, E>
Produce initialization actions before the first event is accepted. Read more
Source§fn transition(
&mut self,
event: Self::Event,
) -> Acted<S::Addr, Never, Vec<Delivery<S::Addr, O>>, Br, E>
fn transition( &mut self, event: Self::Event, ) -> Acted<S::Addr, Never, Vec<Delivery<S::Addr, O>>, Br, E>
Fold exactly one event into explicit actions and the next behavior. Read more
Source§fn receive(
&mut self,
from: Self::Addr,
message: Self::Msg,
) -> BehaviorActed<Self>where
Self: Sized,
fn receive(
&mut self,
from: Self::Addr,
message: Self::Msg,
) -> BehaviorActed<Self>where
Self: Sized,
Fold one user communication through the composed protocol. Read more
Source§fn on<Input>(&mut self, input: Input) -> BehaviorActed<Self>
fn on<Input>(&mut self, input: Input) -> BehaviorActed<Self>
Inject one supported semantic input and fold it through this behavior. Read more
Auto Trait Implementations§
impl<S, O, Br, E> Freeze for Pure<S, O, Br, E>where
S: Freeze,
impl<S, O, Br, E> RefUnwindSafe for Pure<S, O, Br, E>where
S: RefUnwindSafe,
impl<S, O, Br, E> Send for Pure<S, O, Br, E>where
S: Send,
impl<S, O, Br, E> Sync for Pure<S, O, Br, E>where
S: Sync,
impl<S, O, Br, E> Unpin for Pure<S, O, Br, E>where
S: Unpin,
impl<S, O, Br, E> UnsafeUnpin for Pure<S, O, Br, E>where
S: UnsafeUnpin,
impl<S, O, Br, E> UnwindSafe for Pure<S, O, Br, E>where
S: 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