bpfman_api::v1::bpfman_server

Trait Bpfman

source
pub trait Bpfman:
    Send
    + Sync
    + 'static {
    // Required methods
    fn load<'life0, 'async_trait>(
        &'life0 self,
        request: Request<LoadRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<LoadResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unload<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UnloadRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<UnloadResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn pull_bytecode<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PullBytecodeRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PullBytecodeResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with BpfmanServer.

Required Methods§

source

fn load<'life0, 'async_trait>( &'life0 self, request: Request<LoadRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<LoadResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn unload<'life0, 'async_trait>( &'life0 self, request: Request<UnloadRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UnloadResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn list<'life0, 'async_trait>( &'life0 self, request: Request<ListRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn pull_bytecode<'life0, 'async_trait>( &'life0 self, request: Request<PullBytecodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<PullBytecodeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get<'life0, 'async_trait>( &'life0 self, request: Request<GetRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§