Trait AbstractClient

Source
pub trait AbstractClient {
    // Required methods
    fn start_program<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        name: Option<String>,
        prog_buf: &'life1 [u8],
        prog_type: ProgramType,
        export_json: bool,
        args: &'life2 [String],
        btf_archive_path: Option<String>,
    ) -> Pin<Box<dyn Future<Output = Result<ProgramHandle>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn terminate_program<'life0, 'async_trait>(
        &'life0 self,
        handle: ProgramHandle,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_program_pause_state<'life0, 'async_trait>(
        &'life0 self,
        handle: ProgramHandle,
        pause: bool,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_logs<'life0, 'async_trait>(
        &'life0 self,
        handle: ProgramHandle,
        cursor: Option<usize>,
        maximum_count: Option<usize>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(usize, LogEntry)>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_program_list<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ProgramDesc>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Common interfaces for client

Required Methods§

Source

fn start_program<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, name: Option<String>, prog_buf: &'life1 [u8], prog_type: ProgramType, export_json: bool, args: &'life2 [String], btf_archive_path: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<ProgramHandle>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

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

Source

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

Source

fn fetch_logs<'life0, 'async_trait>( &'life0 self, handle: ProgramHandle, cursor: Option<usize>, maximum_count: Option<usize>, ) -> Pin<Box<dyn Future<Output = Result<Vec<(usize, LogEntry)>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Implementors§