pub struct Pure<S, O = Never, Br = 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,
) -> Result<Actions<<S as Handler<O, Br, E>>::Addr, Never, Vec<Delivery<<S as Handler<O, Br, E>>::Addr, O>>, Br>, E>
fn init( &mut self, ) -> Result<Actions<<S as Handler<O, Br, E>>::Addr, Never, Vec<Delivery<<S as Handler<O, Br, E>>::Addr, O>>, Br>, E>
Produce initialization actions before the first event is accepted. Read more
Source§fn transition(
&mut self,
event: <Pure<S, O, Br, E> as Behavior>::Event,
) -> Result<Actions<<S as Handler<O, Br, E>>::Addr, Never, Vec<Delivery<<S as Handler<O, Br, E>>::Addr, O>>, Br>, E>
fn transition( &mut self, event: <Pure<S, O, Br, E> as Behavior>::Event, ) -> Result<Actions<<S as Handler<O, Br, E>>::Addr, Never, Vec<Delivery<<S as Handler<O, Br, E>>::Addr, O>>, Br>, E>
Fold exactly one event into explicit actions and the next 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