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§
Sourcetype databases_importStream: Stream<Item = Result<Server, Status>> + Send + 'static
type databases_importStream: Stream<Item = Result<Server, Status>> + Send + 'static
Server streaming response type for the databases_import method.
Required Methods§
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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_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
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,
Sourcefn 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_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
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,
Sourcefn 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_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
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,
Sourcefn 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_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
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,
Sourcefn 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,
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.