pub struct DefaultServiceInstance { /* private fields */ }Expand description
Base implementation of ServiceInstance
Implementations§
Source§impl DefaultServiceInstance
impl DefaultServiceInstance
Sourcepub fn new(opts: ServiceInstanceOptions) -> Self
pub fn new(opts: ServiceInstanceOptions) -> Self
instantiates a new DefaultServiceInstance
Trait Implementations§
Source§impl Clone for DefaultServiceInstance
impl Clone for DefaultServiceInstance
Source§fn clone(&self) -> DefaultServiceInstance
fn clone(&self) -> DefaultServiceInstance
Returns a duplicate 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 moreSource§impl Default for DefaultServiceInstance
impl Default for DefaultServiceInstance
Source§fn default() -> DefaultServiceInstance
fn default() -> DefaultServiceInstance
Returns the “default value” for a type. Read more
Source§impl ServiceInstance for DefaultServiceInstance
impl ServiceInstance for DefaultServiceInstance
Source§fn get_instance_id(&self) -> String
fn get_instance_id(&self) -> String
Returns the unique instance ID as registered.
Source§fn get_service_id(&self) -> String
fn get_service_id(&self) -> String
Returns the service ID as registered
Source§fn get_scheme(&self) -> String
fn get_scheme(&self) -> String
Returns the scheme of the service.
Source§fn get_metadata(&self) -> HashMap<String, String>
fn get_metadata(&self) -> HashMap<String, String>
Returns the key / value pair associated with the service id.
Returns the key / value pair associated with the service id.
Source§fn get_status(&self) -> String
fn get_status(&self) -> String
Returns returns service instance health status.
Source§fn get_node_id(&self) -> String
fn get_node_id(&self) -> String
Returns service instance cluster node ID
Source§fn get_state(self) -> ServiceInstanceState
fn get_state(self) -> ServiceInstanceState
Returns service instance state
Auto Trait Implementations§
impl Freeze for DefaultServiceInstance
impl RefUnwindSafe for DefaultServiceInstance
impl Send for DefaultServiceInstance
impl Sync for DefaultServiceInstance
impl Unpin for DefaultServiceInstance
impl UnwindSafe for DefaultServiceInstance
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