pub struct Proxy<C>{ /* 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 as Behavior>::Addr, <C as Behavior>::Msg>
type Ph = Never
type Error = Never
type Birth = Births<C>
Source§fn init(
&mut self,
) -> Result<Actions<<C as Behavior>::Addr, Never, <Proxy<C> as Behavior>::Sends, Births<C>>, Never>
fn init( &mut self, ) -> Result<Actions<<C as Behavior>::Addr, Never, <Proxy<C> as Behavior>::Sends, Births<C>>, Never>
Produce initialization actions before the first event is accepted. Read more
Source§fn transition(
&mut self,
event: <Proxy<C> as Behavior>::Event,
) -> Result<Actions<<C as Behavior>::Addr, Never, <Proxy<C> as Behavior>::Sends, Births<C>>, Never>
fn transition( &mut self, event: <Proxy<C> as Behavior>::Event, ) -> Result<Actions<<C as Behavior>::Addr, Never, <Proxy<C> as Behavior>::Sends, Births<C>>, Never>
Fold exactly one event into explicit actions and the next 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