Trait ora_client::ScheduleOperations

source ·
pub trait ScheduleOperations: Debug + Send + Sync + 'static {
    // Required methods
    fn id(&self) -> Uuid;
    fn definition<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<ScheduleDefinition>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_active<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn added_at<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<UnixNanos>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancelled_at<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Option<UnixNanos>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn active_task<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Option<Arc<dyn TaskOperations>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancel<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn id(&self) -> Uuid

source

fn definition<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<ScheduleDefinition>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn is_active<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn added_at<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<UnixNanos>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn cancelled_at<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Option<UnixNanos>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn active_task<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Option<Arc<dyn TaskOperations>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn cancel<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl ScheduleOperations for Arc<dyn ScheduleOperations>

source§

fn id(&self) -> Uuid

source§

fn definition<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<ScheduleDefinition>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn is_active<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn added_at<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<UnixNanos>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn cancelled_at<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Option<UnixNanos>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn active_task<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Option<Arc<dyn TaskOperations>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn cancel<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§