Trait moras::remote::server::editor_rpc::editor_server::Editor
source · pub trait Editor: Send + Sync + 'static {
// Required methods
fn authorize<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthorizeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AuthorizeReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn disconnect<'life0, 'async_trait>(
&'life0 self,
request: Request<DisconnectRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DisconnectReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_cursor<'life0, 'async_trait>(
&'life0 self,
request: Request<SetCursorRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetCursorReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_content<'life0, 'async_trait>(
&'life0 self,
request: Request<GetContentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetContentReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_content<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateContentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateContentReply>, 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 EditorServer.