Trait TypeDb

Source
pub trait TypeDb:
    Send
    + Sync
    + 'static {
    type databases_importStream: Stream<Item = Result<Server, Status>> + Send + 'static;
    type database_exportStream: Stream<Item = Result<Server, Status>> + Send + 'static;
    type transactionStream: Stream<Item = Result<Server, Status>> + Send + 'static;

Show 19 methods // Required methods fn connection_open<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn authentication_token_create<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn servers_all<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn users_get<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn users_all<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn users_contains<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn users_create<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn users_update<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn users_delete<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn databases_get<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn databases_all<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn databases_contains<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn databases_create<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn databases_import<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<Client>>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::databases_importStream>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn database_schema<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn database_type_schema<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn database_delete<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Res>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn database_export<'life0, 'async_trait>( &'life0 self, request: Request<Req>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::database_exportStream>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn transaction<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<Client>>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::transactionStream>, 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 TypeDbServer.

Required Associated Types§

Source

type databases_importStream: Stream<Item = Result<Server, Status>> + Send + 'static

Server streaming response type for the databases_import method.

Source

type database_exportStream: Stream<Item = Result<Server, Status>> + Send + 'static

Server streaming response type for the database_export method.

Source

type transactionStream: Stream<Item = Result<Server, Status>> + Send + 'static

Server streaming response type for the transaction method.

Required Methods§

Source

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

Connection API

Source

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

Authentication API

Source

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

Server Manager API

Source

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

User Manager API

Source

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

Source

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

Source

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

Source

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

User API

Source

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

Source

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

Database Manager API

Source

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

Source

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

Source

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

Source

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

Source

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

Database API

Source

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

Source

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

Source

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

Source

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

Transaction Streaming API Opens a bi-directional stream representing a stateful transaction, streaming requests and responses back-and-forth. The first transaction client message must be {Transaction.Open.Req}. Closing the stream closes the transaction.

Implementors§