pub trait AirService:
Send
+ Sync
+ 'static {
type DownloadStreamStream: Stream<Item = Result<DownloadStreamResponse, Status>> + Send + 'static;
Show 16 methods
// Required methods
fn authenticate<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AuthenticationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_for_updates<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateCheckRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateCheckResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn download_update<'life0, 'async_trait>(
&'life0 self,
request: Request<DownloadRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DownloadResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn apply_update<'life0, 'async_trait>(
&'life0 self,
request: Request<ApplyUpdateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ApplyUpdateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn download_file<'life0, 'async_trait>(
&'life0 self,
request: Request<DownloadRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DownloadResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn download_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<DownloadStreamRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DownloadStreamStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn index_files<'life0, 'async_trait>(
&'life0 self,
request: Request<IndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<IndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search_files<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_file_info<'life0, 'async_trait>(
&'life0 self,
request: Request<FileInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FileInfoResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_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 health_check<'life0, 'async_trait>(
&'life0 self,
request: Request<HealthCheckRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthCheckResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_metrics<'life0, 'async_trait>(
&'life0 self,
request: Request<MetricsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MetricsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_resource_usage<'life0, 'async_trait>(
&'life0 self,
request: Request<ResourceUsageRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ResourceUsageResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_resource_limits<'life0, 'async_trait>(
&'life0 self,
request: Request<ResourceLimitsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ResourceLimitsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_configuration<'life0, 'async_trait>(
&'life0 self,
request: Request<ConfigurationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ConfigurationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_configuration<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateConfigurationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateConfigurationResponse>, 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 AirServiceServer.
Required Associated Types§
Sourcetype DownloadStreamStream: Stream<Item = Result<DownloadStreamResponse, Status>> + Send + 'static
type DownloadStreamStream: Stream<Item = Result<DownloadStreamResponse, Status>> + Send + 'static
Server streaming response type for the DownloadStream method.
Required Methods§
Sourcefn authenticate<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AuthenticationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn authenticate<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AuthenticationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Authentication operations
Sourcefn check_for_updates<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateCheckRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateCheckResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_for_updates<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateCheckRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpdateCheckResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update operations
fn download_update<'life0, 'async_trait>(
&'life0 self,
request: Request<DownloadRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DownloadResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn apply_update<'life0, 'async_trait>(
&'life0 self,
request: Request<ApplyUpdateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ApplyUpdateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn download_file<'life0, 'async_trait>(
&'life0 self,
request: Request<DownloadRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DownloadResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn download_file<'life0, 'async_trait>(
&'life0 self,
request: Request<DownloadRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DownloadResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Download operations
fn download_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<DownloadStreamRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::DownloadStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn index_files<'life0, 'async_trait>(
&'life0 self,
request: Request<IndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<IndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn index_files<'life0, 'async_trait>(
&'life0 self,
request: Request<IndexRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<IndexResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
File indexing operations
fn search_files<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_file_info<'life0, 'async_trait>(
&'life0 self,
request: Request<FileInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<FileInfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn get_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 get_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,
Status and monitoring
fn health_check<'life0, 'async_trait>(
&'life0 self,
request: Request<HealthCheckRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HealthCheckResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_metrics<'life0, 'async_trait>(
&'life0 self,
request: Request<MetricsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MetricsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn get_resource_usage<'life0, 'async_trait>(
&'life0 self,
request: Request<ResourceUsageRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ResourceUsageResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_resource_usage<'life0, 'async_trait>(
&'life0 self,
request: Request<ResourceUsageRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ResourceUsageResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resource management
fn set_resource_limits<'life0, 'async_trait>(
&'life0 self,
request: Request<ResourceLimitsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ResourceLimitsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn get_configuration<'life0, 'async_trait>(
&'life0 self,
request: Request<ConfigurationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ConfigurationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_configuration<'life0, 'async_trait>(
&'life0 self,
request: Request<ConfigurationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ConfigurationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Configuration management