Trait typedb_protocol::type_db_server::TypeDb
source · pub trait TypeDb: Send + Sync + 'static {
type transactionStream: Stream<Item = Result<Server, Status>> + Send + 'static;
Show 22 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 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_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_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 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_password_set<'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 user_password_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 user_token<'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 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_rule_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 session_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 session_close<'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 session_pulse<'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 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§
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 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_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_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,
User Manager API
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_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 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_password_set<'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,
sourcefn user_password_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 user_password_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 user_token<'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,
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_rule_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,
sourcefn session_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 session_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,
Session API
fn session_close<'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 session_pulse<'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 session_pulse<'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,
Checks with the server that the session is still alive, and informs it that it should be kept alive.
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.