Struct zipkin::endpoint::Endpoint
[−]
[src]
pub struct Endpoint { /* fields omitted */ }
An Endpoint
represents information about a service recording trace
information.
It consists of a service name, an optional IPv4 and/or IPv6 address, and an optional port.
Methods
impl Endpoint
[src]
fn builder() -> Builder
Returns a builder type used to construct an Endpoint
.
fn name(&self) -> &str
Returns the name of the service at this endpoint.
fn ipv4(&self) -> Option<Ipv4Addr>
Returns the IPv4 address of the service at this endpoint.
fn ipv6(&self) -> Option<Ipv6Addr>
Returns the IPv6 address of the service at this endpoint.
fn port(&self) -> Option<u16>
Returns the port of the service at this endpoint.
Trait Implementations
impl Debug for Endpoint
[src]
impl Clone for Endpoint
[src]
fn clone(&self) -> Endpoint
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more