pub struct Pursuit { /* private fields */ }Expand description
A goal that keeps taking work until the work runs out.
No serde: a pursuit that could be deserialised would be a pursuit a
wire frame could declare, and the point of the Delegator argument
is that declaring one is the person’s.
Implementations§
Source§impl Pursuit
impl Pursuit
Sourcepub fn declare(_at: &Delegator, goal: String) -> Result<Pursuit, AxError>
pub fn declare(_at: &Delegator, goal: String) -> Result<Pursuit, AxError>
Declares one. The Delegator is the depth-zero position: holding
one is assembly’s discipline, and a Delegate cannot produce
one.
§Errors
Refuses a blank goal. An empty string here would mean “keep working on nothing in particular”, and the city already has a word for that situation — it is a plan with a ready set.
pub fn goal(&self) -> &str
pub fn state(&self) -> PursuitState
pub fn resume(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pursuit
impl RefUnwindSafe for Pursuit
impl Send for Pursuit
impl Sync for Pursuit
impl Unpin for Pursuit
impl UnsafeUnpin for Pursuit
impl UnwindSafe for Pursuit
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