pub struct ProxyControl<W, P> { /* private fields */ }Expand description
Owner-only operation accepted by super::StableProxy.
Implementations§
Source§impl<W> ProxyControl<W, ImmediateActivation>
impl<W> ProxyControl<W, ImmediateActivation>
Source§impl<W, P> ProxyControl<W, P>
impl<W, P> ProxyControl<W, P>
Sourcepub const fn shutdown() -> Self
pub const fn shutdown() -> Self
Shut down the proxy without an unused worker or activation input.
Sourcepub const fn start_with(worker: W, activation: P) -> Self
pub const fn start_with(worker: W, activation: P) -> Self
Start a worker with application-defined activation work.
Sourcepub const fn replace_with(worker: W, activation: P) -> Self
pub const fn replace_with(worker: W, activation: P) -> Self
Replace with a worker using application-defined activation work.
Auto Trait Implementations§
impl<W, P> Freeze for ProxyControl<W, P>
impl<W, P> RefUnwindSafe for ProxyControl<W, P>where
W: RefUnwindSafe,
P: RefUnwindSafe,
impl<W, P> Send for ProxyControl<W, P>
impl<W, P> Sync for ProxyControl<W, P>
impl<W, P> Unpin for ProxyControl<W, P>
impl<W, P> UnsafeUnpin for ProxyControl<W, P>where
W: UnsafeUnpin,
P: UnsafeUnpin,
impl<W, P> UnwindSafe for ProxyControl<W, P>where
W: UnwindSafe,
P: 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