Core

Trait Core 

Source
pub trait Core:
    Send
    + Sync
    + 'static {
    // Required methods
    fn instantiate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<InstantiateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<InstantiateResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn session_create<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SessionCreateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SessionCreateResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn session_set_pub_key<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SessionSetPubKeyRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SessionSetPubKeyResponse>, 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 CoreServer.

Required Methods§

Source

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

Source

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

Source

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

Implementors§