pub struct GracefulStop { /* private fields */ }Expand description
This is a graceful stop for daemons.
Implementations§
Source§impl GracefulStop
impl GracefulStop
pub fn new() -> GracefulStop
pub fn new_with_sender(sender: Sender<()>) -> GracefulStop
pub fn subscribe(self, recipient: Recipient<StopRequest>) -> Self
pub fn clone_system_terminator(&self) -> Arc<SystemTerminator>
pub fn subscribe_ref(&mut self, recipient: Recipient<StopRequest>)
pub fn start_with_delayers( receipts: Vec<(Recipient<Task>, Duration)>, ) -> Addr<Self>
Trait Implementations§
Source§impl Actor for GracefulStop
impl Actor for GracefulStop
Source§type Context = Context<GracefulStop>
type Context = Context<GracefulStop>
Actor execution context type
Source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
Source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping state. Read moreSource§fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
Auto Trait Implementations§
impl Freeze for GracefulStop
impl !RefUnwindSafe for GracefulStop
impl Send for GracefulStop
impl Sync for GracefulStop
impl Unpin for GracefulStop
impl !UnwindSafe for GracefulStop
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