pub struct Proxy<C: Behavior<Ph = Never>> { /* private fields */ }Expand description
A stable actor that serializes fresh worker-incarnation installation.
A worker is routable only in Running. Deadline most one creation can be
Installing; stale or provenance-mismatched results are inert. Rejection
leaves last_installed unchanged, so a later attempt still names the last
incarnation that actually existed.
Implementations§
Trait Implementations§
Source§impl<C> Behavior for Proxy<C>
impl<C> Behavior for Proxy<C>
type Addr = <C as Behavior>::Addr
type Msg = ProxyCommand<C>
type Event = ProxyEvent<User<<C as Behavior>::Addr, ProxyCommand<C>>>
type Sends = ProxySends<C>
type Ph = Never
type Error = Never
type Birth = Births<C>
Source§fn init(
&mut self,
) -> Result<Actions<C::Addr, Never, Self::Sends, Births<C>>, Never>
fn init( &mut self, ) -> Result<Actions<C::Addr, Never, Self::Sends, Births<C>>, Never>
Produce initialization actions before the first event is accepted. Read more
Source§fn transition(
&mut self,
event: Self::Event,
) -> Result<Actions<C::Addr, Never, Self::Sends, Births<C>>, Never>
fn transition( &mut self, event: Self::Event, ) -> Result<Actions<C::Addr, Never, Self::Sends, Births<C>>, Never>
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<C> Freeze for Proxy<C>
impl<C> RefUnwindSafe for Proxy<C>
impl<C> Send for Proxy<C>
impl<C> Sync for Proxy<C>
impl<C> Unpin for Proxy<C>
impl<C> UnsafeUnpin for Proxy<C>
impl<C> UnwindSafe for Proxy<C>
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