pub struct BatataClient { /* private fields */ }Expand description
Main Batata client
Implementations§
Source§impl BatataClient
impl BatataClient
Sourcepub fn builder() -> BatataClientBuilder
pub fn builder() -> BatataClientBuilder
Create a new client builder
Sourcepub async fn new(config: ClientConfig) -> Result<Self>
pub async fn new(config: ClientConfig) -> Result<Self>
Create a new client with configuration
Sourcepub fn config_service(&self) -> Arc<ConfigService>
pub fn config_service(&self) -> Arc<ConfigService>
Get configuration service
Sourcepub fn naming_service(&self) -> Arc<NamingService>
pub fn naming_service(&self) -> Arc<NamingService>
Get naming service
Sourcepub fn rpc_client(&self) -> Arc<RpcClient>
pub fn rpc_client(&self) -> Arc<RpcClient>
Get RPC client
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Check if client is connected
Sourcepub fn connection_id(&self) -> Option<String>
pub fn connection_id(&self) -> Option<String>
Get connection ID
Sourcepub async fn start_config_service(&self) -> Result<()>
pub async fn start_config_service(&self) -> Result<()>
Start config service (for listening)
Sourcepub async fn start_naming_service(&self) -> Result<()>
pub async fn start_naming_service(&self) -> Result<()>
Start naming service (for heartbeat)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatataClient
impl !RefUnwindSafe for BatataClient
impl Send for BatataClient
impl Sync for BatataClient
impl Unpin for BatataClient
impl !UnwindSafe for BatataClient
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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