pub struct Progress(/* private fields */);
Expand description
Progress makes it possible to register some progress. It is used in lieu of healthcheck.
If no progress is observed until the next heartbeat, the actor will be killed.
Implementations§
Source§impl Progress
impl Progress
pub fn record_progress(&self)
pub fn protect_zone(&self) -> ProtectedZoneGuard
Sourcepub fn registered_activity_since_last_call(&self) -> bool
pub fn registered_activity_since_last_call(&self) -> bool
This method mutates the state as follows and returns true if the object was in the protected zone or had change registered.
- Updated -> NoUpdate, returns true
- NoUpdate -> NoUpdate, returns false
- ProtectedZone -> ProtectedZone, returns true
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnwindSafe for Progress
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