Struct ydb_unofficial::generated::ydb::cms::v1::cms_service_client::CmsServiceClient
source · pub struct CmsServiceClient<T> { /* private fields */ }Implementations§
source§impl<T> CmsServiceClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync, Global>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync, Global>> + Send,
impl<T> CmsServiceClient<T>where T: GrpcService<UnsyncBoxBody<Bytes, Status>>, <T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync, Global>>, <T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static, <<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync, Global>> + Send,
pub fn new(inner: T) -> CmsServiceClient<T>
pub fn with_origin(inner: T, origin: Uri) -> CmsServiceClient<T>
pub fn with_interceptor<F>( inner: T, interceptor: F ) -> CmsServiceClient<InterceptedService<T, F>>where F: Interceptor, <T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Default, T: Service<Request<UnsyncBoxBody<Bytes, Status>>, Response = Response<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody>>, <T as Service<Request<UnsyncBoxBody<Bytes, Status>>>>::Error: Into<Box<dyn Error + Send + Sync, Global>> + Send + Sync,
sourcepub fn send_compressed(
self,
encoding: CompressionEncoding
) -> CmsServiceClient<T>
pub fn send_compressed( self, encoding: CompressionEncoding ) -> CmsServiceClient<T>
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
) -> CmsServiceClient<T>
pub fn accept_compressed( self, encoding: CompressionEncoding ) -> CmsServiceClient<T>
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> CmsServiceClient<T>
pub fn max_decoding_message_size(self, limit: usize) -> CmsServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> CmsServiceClient<T>
pub fn max_encoding_message_size(self, limit: usize) -> CmsServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_database(
&mut self,
request: impl IntoRequest<CreateDatabaseRequest>
) -> impl Future<Output = Result<Response<CreateDatabaseResponse>, Status>>
pub async fn create_database( &mut self, request: impl IntoRequest<CreateDatabaseRequest> ) -> impl Future<Output = Result<Response<CreateDatabaseResponse>, Status>>
Create a new database.
sourcepub async fn get_database_status(
&mut self,
request: impl IntoRequest<GetDatabaseStatusRequest>
) -> impl Future<Output = Result<Response<GetDatabaseStatusResponse>, Status>>
pub async fn get_database_status( &mut self, request: impl IntoRequest<GetDatabaseStatusRequest> ) -> impl Future<Output = Result<Response<GetDatabaseStatusResponse>, Status>>
Get current database’s status.
sourcepub async fn alter_database(
&mut self,
request: impl IntoRequest<AlterDatabaseRequest>
) -> impl Future<Output = Result<Response<AlterDatabaseResponse>, Status>>
pub async fn alter_database( &mut self, request: impl IntoRequest<AlterDatabaseRequest> ) -> impl Future<Output = Result<Response<AlterDatabaseResponse>, Status>>
Alter database resources.
sourcepub async fn list_databases(
&mut self,
request: impl IntoRequest<ListDatabasesRequest>
) -> impl Future<Output = Result<Response<ListDatabasesResponse>, Status>>
pub async fn list_databases( &mut self, request: impl IntoRequest<ListDatabasesRequest> ) -> impl Future<Output = Result<Response<ListDatabasesResponse>, Status>>
List all databases.
sourcepub async fn remove_database(
&mut self,
request: impl IntoRequest<RemoveDatabaseRequest>
) -> impl Future<Output = Result<Response<RemoveDatabaseResponse>, Status>>
pub async fn remove_database( &mut self, request: impl IntoRequest<RemoveDatabaseRequest> ) -> impl Future<Output = Result<Response<RemoveDatabaseResponse>, Status>>
Remove database.
sourcepub async fn describe_database_options(
&mut self,
request: impl IntoRequest<DescribeDatabaseOptionsRequest>
) -> impl Future<Output = Result<Response<DescribeDatabaseOptionsResponse>, Status>>
pub async fn describe_database_options( &mut self, request: impl IntoRequest<DescribeDatabaseOptionsRequest> ) -> impl Future<Output = Result<Response<DescribeDatabaseOptionsResponse>, Status>>
Describe supported database options.
Trait Implementations§
source§impl<T> Clone for CmsServiceClient<T>where
T: Clone,
impl<T> Clone for CmsServiceClient<T>where T: Clone,
source§fn clone(&self) -> CmsServiceClient<T>
fn clone(&self) -> CmsServiceClient<T>
Returns a copy 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> RefUnwindSafe for CmsServiceClient<T>where T: RefUnwindSafe,
impl<T> Send for CmsServiceClient<T>where T: Send,
impl<T> Sync for CmsServiceClient<T>where T: Sync,
impl<T> Unpin for CmsServiceClient<T>where T: Unpin,
impl<T> UnwindSafe for CmsServiceClient<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> 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> 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