pub struct NodeAdminServiceClient<T> { /* private fields */ }Implementations§
Source§impl<T> NodeAdminServiceClient<T>where
T: GrpcService<Body>,
<T as GrpcService<Body>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<Body>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
impl<T> NodeAdminServiceClient<T>where
T: GrpcService<Body>,
<T as GrpcService<Body>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<Body>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
pub fn new(inner: T) -> NodeAdminServiceClient<T>
pub fn with_origin(inner: T, origin: Uri) -> NodeAdminServiceClient<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NodeAdminServiceClient<InterceptedService<T, F>>where
F: Interceptor,
<T as GrpcService<Body>>::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::Error: Into<Box<dyn Error + Sync + Send>> + Send + Sync,
Sourcepub fn send_compressed(
self,
encoding: CompressionEncoding,
) -> NodeAdminServiceClient<T>
pub fn send_compressed( self, encoding: CompressionEncoding, ) -> NodeAdminServiceClient<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,
) -> NodeAdminServiceClient<T>
pub fn accept_compressed( self, encoding: CompressionEncoding, ) -> NodeAdminServiceClient<T>
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(
self,
limit: usize,
) -> NodeAdminServiceClient<T>
pub fn max_decoding_message_size( self, limit: usize, ) -> NodeAdminServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(
self,
limit: usize,
) -> NodeAdminServiceClient<T>
pub fn max_encoding_message_size( self, limit: usize, ) -> NodeAdminServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn update_config(
&mut self,
request: impl IntoRequest<UpdateConfigRequest>,
) -> Result<Response<UpdateConfigResponse>, Status>
pub async fn update_config( &mut self, request: impl IntoRequest<UpdateConfigRequest>, ) -> Result<Response<UpdateConfigResponse>, Status>
———— Configuration management ————
pub async fn get_config( &mut self, request: impl IntoRequest<GetConfigRequest>, ) -> Result<Response<GetConfigResponse>, Status>
Sourcepub async fn create_realm(
&mut self,
request: impl IntoRequest<CreateRealmRequest>,
) -> Result<Response<CreateRealmResponse>, Status>
pub async fn create_realm( &mut self, request: impl IntoRequest<CreateRealmRequest>, ) -> Result<Response<CreateRealmResponse>, Status>
———— Realm management ————
pub async fn get_realm( &mut self, request: impl IntoRequest<GetRealmRequest>, ) -> Result<Response<GetRealmResponse>, Status>
pub async fn update_realm( &mut self, request: impl IntoRequest<UpdateRealmRequest>, ) -> Result<Response<UpdateRealmResponse>, Status>
pub async fn delete_realm( &mut self, request: impl IntoRequest<DeleteRealmRequest>, ) -> Result<Response<DeleteRealmResponse>, Status>
pub async fn list_realms( &mut self, request: impl IntoRequest<ListRealmsRequest>, ) -> Result<Response<ListRealmsResponse>, Status>
Sourcepub async fn get_node_info(
&mut self,
request: impl IntoRequest<GetNodeInfoRequest>,
) -> Result<Response<GetNodeInfoResponse>, Status>
pub async fn get_node_info( &mut self, request: impl IntoRequest<GetNodeInfoRequest>, ) -> Result<Response<GetNodeInfoResponse>, Status>
———— Node control ————
pub async fn shutdown( &mut self, request: impl IntoRequest<ShutdownRequest>, ) -> Result<Response<ShutdownResponse>, Status>
Sourcepub async fn list_config_overrides(
&mut self,
request: impl IntoRequest<ListConfigOverridesRequest>,
) -> Result<Response<ListConfigOverridesResponse>, Status>
pub async fn list_config_overrides( &mut self, request: impl IntoRequest<ListConfigOverridesRequest>, ) -> Result<Response<ListConfigOverridesResponse>, Status>
———— Config override management (remote admin) ————
pub async fn set_config_override( &mut self, request: impl IntoRequest<SetConfigOverrideRequest>, ) -> Result<Response<SetConfigOverrideResponse>, Status>
pub async fn delete_config_override( &mut self, request: impl IntoRequest<DeleteConfigOverrideRequest>, ) -> Result<Response<DeleteConfigOverrideResponse>, Status>
Trait Implementations§
Source§impl<T> Clone for NodeAdminServiceClient<T>where
T: Clone,
impl<T> Clone for NodeAdminServiceClient<T>where
T: Clone,
Source§fn clone(&self) -> NodeAdminServiceClient<T>
fn clone(&self) -> NodeAdminServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeAdminServiceClient<T>
impl<T> RefUnwindSafe for NodeAdminServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for NodeAdminServiceClient<T>where
T: Send,
impl<T> Sync for NodeAdminServiceClient<T>where
T: Sync,
impl<T> Unpin for NodeAdminServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for NodeAdminServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NodeAdminServiceClient<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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