pub enum ProxyCommand<C: Behavior> {
Forward(C::Msg),
Replace(C),
}Expand description
Commands accepted by a stable proxy.
A replacement requested while the current worker is alive is held until that worker’s observed termination. Creation therefore never overlaps two worker incarnations beneath the same proxy.
Variants§
Forward(C::Msg)
Forward an application message to the current worker, if one is alive.
Replace(C)
Supply the worker behavior for the next fresh incarnation.
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for ProxyCommand<C>
impl<C> RefUnwindSafe for ProxyCommand<C>
impl<C> Send for ProxyCommand<C>
impl<C> Sync for ProxyCommand<C>
impl<C> Unpin for ProxyCommand<C>
impl<C> UnsafeUnpin for ProxyCommand<C>
impl<C> UnwindSafe for ProxyCommand<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