pub trait WallGuard:
Send
+ Sync
+ 'static {
// Required methods
fn login<'life0, 'async_trait>(
&'life0 self,
request: Request<LoginRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Authentication>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn status<'life0, 'async_trait>(
&'life0 self,
request: Request<StatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StatusResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn setup<'life0, 'async_trait>(
&'life0 self,
request: Request<SetupRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CommonResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn heartbeat<'life0, 'async_trait>(
&'life0 self,
request: Request<HeartbeatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HeartbeatResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_packets<'life0, 'async_trait>(
&'life0 self,
request: Request<Packets>,
) -> Pin<Box<dyn Future<Output = Result<Response<CommonResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_config<'life0, 'async_trait>(
&'life0 self,
request: Request<ConfigSnapshot>,
) -> Pin<Box<dyn Future<Output = Result<Response<CommonResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_logs<'life0, 'async_trait>(
&'life0 self,
request: Request<Logs>,
) -> Pin<Box<dyn Future<Output = Result<Response<CommonResponse>, 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 WallGuardServer.