pub struct GoalDriver { /* private fields */ }Implementations§
Source§impl GoalDriver
impl GoalDriver
pub fn new( store: Arc<dyn DocumentStore>, jobs: Arc<dyn GoalJobs>, now: Clock, ) -> Self
Sourcepub fn recover(&self) -> Result<Option<Value>, String>
pub fn recover(&self) -> Result<Option<Value>, String>
Loads the goal and reconciles it with the task journal (the worker’s open); returns it.
Sourcepub fn get(&self) -> Result<Option<Value>, String>
pub fn get(&self) -> Result<Option<Value>, String>
The goal now (a copy), after the document loads.
Sourcepub fn command(&self, args: &str) -> Result<String, String>
pub fn command(&self, args: &str) -> Result<String, String>
/goal [objective | pause | resume | clear | check [command] | status]; returns the text to show.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GoalDriver
impl !RefUnwindSafe for GoalDriver
impl !UnwindSafe for GoalDriver
impl Forget for GoalDriver
impl Move for GoalDriver
impl Send for GoalDriver
impl Sync for GoalDriver
impl Unpin for GoalDriver
impl UnsafeUnpin for GoalDriver
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