pub struct ComponentServiceClient<T> { /* private fields */ }
Implementations§
Source§impl<T> ComponentServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ComponentServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ComponentServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
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
pub async fn get_components( &mut self, request: impl IntoRequest<GetComponentsRequest>, ) -> Result<Response<GetComponentsResponse>, Status>
pub async fn create_component( &mut self, request: impl IntoStreamingRequest<Message = CreateComponentRequest>, ) -> Result<Response<CreateComponentResponse>, Status>
pub async fn download_component( &mut self, request: impl IntoRequest<DownloadComponentRequest>, ) -> Result<Response<Streaming<DownloadComponentResponse>>, Status>
pub async fn get_component_metadata_all_versions( &mut self, request: impl IntoRequest<GetComponentRequest>, ) -> Result<Response<GetComponentMetadataAllVersionsResponse>, Status>
pub async fn get_latest_component_metadata( &mut self, request: impl IntoRequest<GetLatestComponentRequest>, ) -> Result<Response<GetComponentMetadataResponse>, Status>
pub async fn update_component( &mut self, request: impl IntoStreamingRequest<Message = UpdateComponentRequest>, ) -> Result<Response<UpdateComponentResponse>, Status>
pub async fn get_component_metadata( &mut self, request: impl IntoRequest<GetVersionedComponentRequest>, ) -> Result<Response<GetComponentMetadataResponse>, Status>
pub async fn create_component_constraints( &mut self, request: impl IntoRequest<CreateComponentConstraintsRequest>, ) -> Result<Response<CreateComponentConstraintsResponse>, Status>
pub async fn delete_component_constraint( &mut self, request: impl IntoRequest<DeleteComponentConstraintsRequest>, ) -> Result<Response<DeleteComponentConstraintsResponse>, Status>
pub async fn get_installed_plugins( &mut self, request: impl IntoRequest<GetInstalledPluginsRequest>, ) -> Result<Response<GetInstalledPluginsResponse>, Status>
pub async fn install_plugin( &mut self, request: impl IntoRequest<InstallPluginRequest>, ) -> Result<Response<InstallPluginResponse>, Status>
pub async fn update_installed_plugin( &mut self, request: impl IntoRequest<UpdateInstalledPluginRequest>, ) -> Result<Response<UpdateInstalledPluginResponse>, Status>
pub async fn uninstall_plugin( &mut self, request: impl IntoRequest<UninstallPluginRequest>, ) -> Result<Response<UninstallPluginResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for ComponentServiceClient<T>
impl<T: Clone> Clone for ComponentServiceClient<T>
Source§fn clone(&self) -> ComponentServiceClient<T>
fn clone(&self) -> ComponentServiceClient<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 ComponentServiceClient<T>
impl<T> RefUnwindSafe for ComponentServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ComponentServiceClient<T>where
T: Send,
impl<T> Sync for ComponentServiceClient<T>where
T: Sync,
impl<T> Unpin for ComponentServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ComponentServiceClient<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,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request