Struct ScheduleHandle
pub struct ScheduleHandle { /* private fields */ }Expand description
A schedule, addressed by name.
Implementations§
§impl ScheduleHandle
impl ScheduleHandle
pub async fn pause(&self) -> Result<()>
pub async fn resume(&self) -> Result<()>
pub async fn backfill(&self, from_ms: u64, to_ms: u64) -> Result<()>
pub async fn backfill(&self, from_ms: u64, to_ms: u64) -> Result<()>
Starts a run for every scheduled time in [from_ms, to_ms].
pub async fn update(&self, spec: ScheduleSpec) -> Result<()>
Trait Implementations§
§impl Clone for ScheduleHandle
impl Clone for ScheduleHandle
§fn clone(&self) -> ScheduleHandle
fn clone(&self) -> ScheduleHandle
Returns a duplicate of the value. Read more
1.0.0 · 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 ScheduleHandle
impl !RefUnwindSafe for ScheduleHandle
impl Send for ScheduleHandle
impl Sync for ScheduleHandle
impl Unpin for ScheduleHandle
impl UnsafeUnpin for ScheduleHandle
impl !UnwindSafe for ScheduleHandle
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