pub struct ScheduleHandle { /* private fields */ }Expand description
A handle to a schedule.
Implementations§
Source§impl ScheduleHandle
impl ScheduleHandle
Sourcepub async fn details(&self) -> Result<Arc<ScheduleDetails>>
pub async fn details(&self) -> Result<Arc<ScheduleDetails>>
Get the details of the schedule.
Sourcepub fn cached_details(&self) -> Option<Arc<ScheduleDetails>>
pub fn cached_details(&self) -> Option<Arc<ScheduleDetails>>
Get the cached details of the schedule, if available.
Sourcepub fn jobs(
&self,
filter: JobFilter,
order: JobOrder,
) -> impl Stream<Item = Result<JobHandle, AdminClientError>> + Send + Unpin + 'static
pub fn jobs( &self, filter: JobFilter, order: JobOrder, ) -> impl Stream<Item = Result<JobHandle, AdminClientError>> + Send + Unpin + 'static
Get the jobs that were created by this schedule with the given filter and order.
Sourcepub async fn job_count(&self) -> Result<u64, AdminClientError>
pub async fn job_count(&self) -> Result<u64, AdminClientError>
Return the amount of jobs that were created by this schedule.
Sourcepub async fn active_job(&self) -> Result<Option<JobHandle>, AdminClientError>
pub async fn active_job(&self) -> Result<Option<JobHandle>, AdminClientError>
Get the active job of the schedule.
Auto Trait Implementations§
impl !Freeze for ScheduleHandle
impl !RefUnwindSafe for ScheduleHandle
impl Send for ScheduleHandle
impl Sync for ScheduleHandle
impl Unpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<W> IntoExecutionHandler for W
impl<W> IntoExecutionHandler for W
Source§fn handler<J>(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>where
Self: ExecutionHandler<J>,
J: JobType,
fn handler<J>(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>where
Self: ExecutionHandler<J>,
J: JobType,
Convert
self into a [RawHandler] that can be registered
in workers.Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request