Struct zipkin::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
[src]
Returns a builder type used to construct an Endpoint
.
fn service_name(&self) -> &str
[src]
Returns the name of the service at this endpoint.
fn name(&self) -> &str
[src]
Deprecated since 0.1.5
: renamed to service_name
Returns the name of the service at this endpoint.
fn ipv4(&self) -> Option<Ipv4Addr>
[src]
Returns the IPv4 address of the service at this endpoint.
fn ipv6(&self) -> Option<Ipv6Addr>
[src]
Returns the IPv6 address of the service at this endpoint.
fn port(&self) -> Option<u16>
[src]
Returns the port of the service at this endpoint.