Struct plumcast::ServiceHandle [−][src]
pub struct ServiceHandle<M: MessagePayload> { /* fields omitted */ }
A handle of a Service
instance.
Methods
impl<M: MessagePayload> ServiceHandle<M>
[src]
impl<M: MessagePayload> ServiceHandle<M>
pub fn rpc_server_addr(&self) -> SocketAddr
[src]
pub fn rpc_server_addr(&self) -> SocketAddr
Returns the address of the RPC server used for inter node communications.
pub fn metrics(&self) -> &ServiceMetrics
[src]
pub fn metrics(&self) -> &ServiceMetrics
Returns the metrics of the service.
pub fn local_nodes(&self) -> Vec<LocalNodeId>
[src]
pub fn local_nodes(&self) -> Vec<LocalNodeId>
Returns the identifiers of the nodes registered in the service.
Trait Implementations
impl<M: Debug + MessagePayload> Debug for ServiceHandle<M>
[src]
impl<M: Debug + MessagePayload> Debug for ServiceHandle<M>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<M: Clone + MessagePayload> Clone for ServiceHandle<M>
[src]
impl<M: Clone + MessagePayload> Clone for ServiceHandle<M>
fn clone(&self) -> ServiceHandle<M>
[src]
fn clone(&self) -> ServiceHandle<M>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<M> Send for ServiceHandle<M>
impl<M> Send for ServiceHandle<M>
impl<M> Sync for ServiceHandle<M>
impl<M> Sync for ServiceHandle<M>