Struct nacos_rs_sdk::client::NacosClient [−][src]
pub struct NacosClient { /* fields omitted */ }
Implementations
pub async fn register_with_params(
&self,
ip: &str,
port: u16,
service_name: &str,
options: &Option<RegisterInstanceOption>
) -> Result<String, Box<dyn Error + Send + Sync>>
pub async fn register_with_object(
&self,
instance: &InstanceObject,
options: &Option<RegisterInstanceOption>
) -> Result<String, Box<dyn Error + Send + Sync>>
pub async fn unregister_with_params(
&self,
ip: &str,
port: u16,
service_name: &str,
options: &Option<RemoveInstanceOption>
) -> Result<String, Box<dyn Error + Send + Sync>>
pub async fn unregister_with_object(
&self,
instance: &InstanceObject,
options: &Option<RemoveInstanceOption>
) -> Result<String, Box<dyn Error + Send + Sync>>
pub async fn instance_with_params(
&self,
ip: &str,
port: u16,
service_name: &str,
options: &Option<QueryInstanceOption>
) -> Result<Instance, Box<dyn Error + Send + Sync>>
pub async fn instance_with_object(
&self,
instance: &InstanceObject,
options: &Option<QueryInstanceOption>
) -> Result<Instance, Box<dyn Error + Send + Sync>>
pub async fn list_instances_with_params(
&self,
service_name: &String,
options: &Option<QueryInstancesOption>
) -> Result<Instances, Box<dyn Error + Send + Sync>>
pub async fn list_instances_with_object(
&self,
service: &QueryInstances,
options: &Option<QueryInstancesOption>
) -> Result<Instances, Box<dyn Error + Send + Sync>>
pub async fn detail_config(
&self,
service: &Config
) -> Result<String, Box<dyn Error + Send + Sync>>
pub async fn publish_config(
&self,
service: &Config,
options: &Option<ConfigContent>
) -> Result<String, Box<dyn Error + Send + Sync>>
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for NacosClient
impl Send for NacosClient
impl Sync for NacosClient
impl Unpin for NacosClient
impl UnwindSafe for NacosClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V