pub struct AirServiceClient<T> { /* private fields */ }Expand description
Air Service - The background daemon service for Land
Implementations§
Source§impl AirServiceClient<Channel>
impl AirServiceClient<Channel>
Source§impl<T> AirServiceClient<T>
impl<T> AirServiceClient<T>
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> AirServiceClient<InterceptedService<T, F>>
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn authenticate(
&mut self,
request: impl IntoRequest<AuthenticationRequest>,
) -> Result<Response<AuthenticationResponse>, Status>
pub async fn authenticate( &mut self, request: impl IntoRequest<AuthenticationRequest>, ) -> Result<Response<AuthenticationResponse>, Status>
Authentication operations
Sourcepub async fn check_for_updates(
&mut self,
request: impl IntoRequest<UpdateCheckRequest>,
) -> Result<Response<UpdateCheckResponse>, Status>
pub async fn check_for_updates( &mut self, request: impl IntoRequest<UpdateCheckRequest>, ) -> Result<Response<UpdateCheckResponse>, Status>
Update operations
pub async fn download_update( &mut self, request: impl IntoRequest<DownloadRequest>, ) -> Result<Response<DownloadResponse>, Status>
pub async fn apply_update( &mut self, request: impl IntoRequest<ApplyUpdateRequest>, ) -> Result<Response<ApplyUpdateResponse>, Status>
Sourcepub async fn download_file(
&mut self,
request: impl IntoRequest<DownloadRequest>,
) -> Result<Response<DownloadResponse>, Status>
pub async fn download_file( &mut self, request: impl IntoRequest<DownloadRequest>, ) -> Result<Response<DownloadResponse>, Status>
Download operations
pub async fn download_stream( &mut self, request: impl IntoRequest<DownloadStreamRequest>, ) -> Result<Response<Streaming<DownloadStreamResponse>>, Status>
Sourcepub async fn index_files(
&mut self,
request: impl IntoRequest<IndexRequest>,
) -> Result<Response<IndexResponse>, Status>
pub async fn index_files( &mut self, request: impl IntoRequest<IndexRequest>, ) -> Result<Response<IndexResponse>, Status>
File indexing operations
pub async fn search_files( &mut self, request: impl IntoRequest<SearchRequest>, ) -> Result<Response<SearchResponse>, Status>
pub async fn get_file_info( &mut self, request: impl IntoRequest<FileInfoRequest>, ) -> Result<Response<FileInfoResponse>, Status>
Sourcepub async fn get_status(
&mut self,
request: impl IntoRequest<StatusRequest>,
) -> Result<Response<StatusResponse>, Status>
pub async fn get_status( &mut self, request: impl IntoRequest<StatusRequest>, ) -> Result<Response<StatusResponse>, Status>
Status and monitoring
pub async fn health_check( &mut self, request: impl IntoRequest<HealthCheckRequest>, ) -> Result<Response<HealthCheckResponse>, Status>
pub async fn get_metrics( &mut self, request: impl IntoRequest<MetricsRequest>, ) -> Result<Response<MetricsResponse>, Status>
Sourcepub async fn get_resource_usage(
&mut self,
request: impl IntoRequest<ResourceUsageRequest>,
) -> Result<Response<ResourceUsageResponse>, Status>
pub async fn get_resource_usage( &mut self, request: impl IntoRequest<ResourceUsageRequest>, ) -> Result<Response<ResourceUsageResponse>, Status>
Resource management
pub async fn set_resource_limits( &mut self, request: impl IntoRequest<ResourceLimitsRequest>, ) -> Result<Response<ResourceLimitsResponse>, Status>
Sourcepub async fn get_configuration(
&mut self,
request: impl IntoRequest<ConfigurationRequest>,
) -> Result<Response<ConfigurationResponse>, Status>
pub async fn get_configuration( &mut self, request: impl IntoRequest<ConfigurationRequest>, ) -> Result<Response<ConfigurationResponse>, Status>
Configuration management
pub async fn update_configuration( &mut self, request: impl IntoRequest<UpdateConfigurationRequest>, ) -> Result<Response<UpdateConfigurationResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for AirServiceClient<T>
impl<T: Clone> Clone for AirServiceClient<T>
Source§fn clone(&self) -> AirServiceClient<T>
fn clone(&self) -> AirServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for AirServiceClient<T>
impl<T> RefUnwindSafe for AirServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for AirServiceClient<T>where
T: Send,
impl<T> Sync for AirServiceClient<T>where
T: Sync,
impl<T> Unpin for AirServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for AirServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].