Skip to main content

RuntimeLink

Trait RuntimeLink 

Source
pub trait RuntimeLink:
    Send
    + Sync
    + 'static {
    // Required methods
    fn create_execution<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        authority: &'life1 RequestAuthority,
        idempotency_key: &'life2 str,
        request: CreateExecutionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<CreateExecutionResponse, LinkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn execution<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        authority: &'life1 RequestAuthority,
        id: &'life2 ExecutionId,
    ) -> Pin<Box<dyn Future<Output = Result<ExecutionView, LinkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn events<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        authority: &'life1 RequestAuthority,
        id: &'life2 ExecutionId,
        after: Option<u64>,
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<EventPage, LinkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn submit_input<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        authority: &'life1 RequestAuthority,
        id: &'life2 ExecutionId,
        request: SubmitInputRequest,
    ) -> Pin<Box<dyn Future<Output = Result<ExecutionView, LinkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn cancel<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        authority: &'life1 RequestAuthority,
        id: &'life2 ExecutionId,
    ) -> Pin<Box<dyn Future<Output = Result<ExecutionView, LinkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn create_execution<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, authority: &'life1 RequestAuthority, idempotency_key: &'life2 str, request: CreateExecutionRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateExecutionResponse, LinkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn execution<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, authority: &'life1 RequestAuthority, id: &'life2 ExecutionId, ) -> Pin<Box<dyn Future<Output = Result<ExecutionView, LinkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn events<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, authority: &'life1 RequestAuthority, id: &'life2 ExecutionId, after: Option<u64>, limit: usize, ) -> Pin<Box<dyn Future<Output = Result<EventPage, LinkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn submit_input<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, authority: &'life1 RequestAuthority, id: &'life2 ExecutionId, request: SubmitInputRequest, ) -> Pin<Box<dyn Future<Output = Result<ExecutionView, LinkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn cancel<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, authority: &'life1 RequestAuthority, id: &'life2 ExecutionId, ) -> Pin<Box<dyn Future<Output = Result<ExecutionView, LinkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§