pub struct RoutineStore { /* private fields */ }Implementations§
Source§impl RoutineStore
impl RoutineStore
pub fn new(root: PathBuf, project: &Path) -> Result<Self, RoutineError>
pub fn default_root() -> Result<PathBuf, RoutineError>
pub fn project(&self) -> &Path
pub fn key(&self) -> &str
pub fn project_file(&self) -> PathBuf
pub fn runtime_file(&self) -> PathBuf
pub fn logs_dir(&self) -> PathBuf
pub fn socket_path(&self) -> PathBuf
pub fn lock_path(&self) -> PathBuf
pub fn load(&self) -> Result<ProjectRoutines, RoutineError>
pub fn save( &self, config: ProjectRoutines, expected: u64, ) -> Result<ProjectRoutines, RoutineError>
pub fn load_runtime(&self) -> Result<RuntimeState, RoutineError>
pub fn save_runtime(&self, state: &RuntimeState) -> Result<(), RoutineError>
pub fn admit_event( &self, kind: &str, event_id: &str, records: &[RunRecord], ) -> Result<bool, RoutineError>
pub fn claim( &self, routine: &str, epoch_minute: i64, ) -> Result<bool, RoutineError>
pub fn modify_runtime<T>( &self, update: impl FnOnce(&mut RuntimeState) -> Result<T, RoutineError>, ) -> Result<T, RoutineError>
Trait Implementations§
Source§impl Clone for RoutineStore
impl Clone for RoutineStore
Source§fn clone(&self) -> RoutineStore
fn clone(&self) -> RoutineStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoutineStore
impl RefUnwindSafe for RoutineStore
impl Send for RoutineStore
impl Sync for RoutineStore
impl Unpin for RoutineStore
impl UnsafeUnpin for RoutineStore
impl UnwindSafe for RoutineStore
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