Trait lock_keeper::rpc::lock_keeper_rpc_server::LockKeeperRpc
source · pub trait LockKeeperRpc: Send + Sync + 'static {
Show 32 associated items
type AuthenticateStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type CreateStorageKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type DeleteKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type GenerateSecretStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type GetUserIdStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type ImportSigningKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type LogoutStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type StoreServerEncryptedBlobStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type RegisterStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type RemoteGenerateStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type RemoteSignBytesStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type RetrieveServerEncryptedBlobStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type RetrieveSecretStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type RetrieveAuditEventsStream: Stream<Item = Result<Message, Status>> + Send + 'static;
type RetrieveStorageKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static;
// Required methods
fn authenticate<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::AuthenticateStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_session<'life0, 'async_trait>(
&'life0 self,
request: Request<Empty>
) -> Pin<Box<dyn Future<Output = Result<Response<SessionStatus>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_storage_key<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::CreateStorageKeyStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_key<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DeleteKeyStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn generate_secret<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GenerateSecretStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_user_id<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetUserIdStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn health<'life0, 'async_trait>(
&'life0 self,
request: Request<Empty>
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn import_signing_key<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ImportSigningKeyStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn logout<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::LogoutStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn store_server_encrypted_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StoreServerEncryptedBlobStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::RegisterStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remote_generate<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::RemoteGenerateStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remote_sign_bytes<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::RemoteSignBytesStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_server_encrypted_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::RetrieveServerEncryptedBlobStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_secret<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::RetrieveSecretStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_audit_events<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::RetrieveAuditEventsStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_storage_key<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<Message>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::RetrieveStorageKeyStream>, 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 LockKeeperRpcServer.
Required Associated Types§
sourcetype AuthenticateStream: Stream<Item = Result<Message, Status>> + Send + 'static
type AuthenticateStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the Authenticate method.
sourcetype CreateStorageKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static
type CreateStorageKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the CreateStorageKey method.
sourcetype DeleteKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static
type DeleteKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the DeleteKey method.
sourcetype GenerateSecretStream: Stream<Item = Result<Message, Status>> + Send + 'static
type GenerateSecretStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the GenerateSecret method.
sourcetype GetUserIdStream: Stream<Item = Result<Message, Status>> + Send + 'static
type GetUserIdStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the GetUserId method.
sourcetype ImportSigningKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static
type ImportSigningKeyStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the ImportSigningKey method.
sourcetype LogoutStream: Stream<Item = Result<Message, Status>> + Send + 'static
type LogoutStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the Logout method.
sourcetype StoreServerEncryptedBlobStream: Stream<Item = Result<Message, Status>> + Send + 'static
type StoreServerEncryptedBlobStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the StoreServerEncryptedBlob method.
sourcetype RegisterStream: Stream<Item = Result<Message, Status>> + Send + 'static
type RegisterStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the Register method.
sourcetype RemoteGenerateStream: Stream<Item = Result<Message, Status>> + Send + 'static
type RemoteGenerateStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the RemoteGenerate method.
sourcetype RemoteSignBytesStream: Stream<Item = Result<Message, Status>> + Send + 'static
type RemoteSignBytesStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the RemoteSignBytes method.
sourcetype RetrieveServerEncryptedBlobStream: Stream<Item = Result<Message, Status>> + Send + 'static
type RetrieveServerEncryptedBlobStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the RetrieveServerEncryptedBlob method.
sourcetype RetrieveSecretStream: Stream<Item = Result<Message, Status>> + Send + 'static
type RetrieveSecretStream: Stream<Item = Result<Message, Status>> + Send + 'static
Server streaming response type for the RetrieveSecret method.