pub struct EurekaClient { /* private fields */ }Expand description
A client for accessing Eureka
Implementations§
Source§impl EurekaClient
impl EurekaClient
Sourcepub fn new(client_name: &str, eureka_cluster_url: &str) -> EurekaClient
pub fn new(client_name: &str, eureka_cluster_url: &str) -> EurekaClient
Creates a new instance of EurekaClient
§Arguments
client_name- The name of this clienteureka_cluster_url- The base url to the eureka cluster
pub async fn register( &self, application_id: &str, register_request: &RegisterRequest, ) -> Result<(), EurekaClientError>
pub async fn deregister( &self, application_id: &str, instance_id: &str, ) -> Result<(), EurekaClientError>
pub async fn get_application( &self, application_id: &str, ) -> Result<ApplicationResponse, EurekaClientError>
pub async fn get_applications( &self, ) -> Result<ApplicationsResponse, EurekaClientError>
Auto Trait Implementations§
impl Freeze for EurekaClient
impl !RefUnwindSafe for EurekaClient
impl Send for EurekaClient
impl Sync for EurekaClient
impl Unpin for EurekaClient
impl UnsafeUnpin for EurekaClient
impl !UnwindSafe for EurekaClient
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