Struct quilkin::endpoint::EndpointAddress [−][src]
Expand description
A valid socket address. This differs from std::net::SocketAddr
, in that it
it supports parsing Domain Names in addition to IP addresses. Domain Names
are resolved when ToSocketAddrs::to_socket_addrs
is called.
Fields
host: AddressKind
A valid name or IP address that resolves to a address.
port: Option<u16>
The port of the socket address, if present.
Implementations
Returns the port for the endpoint address, or 0
if no port
was specified.
Returns the socket address for the endpoint, resolving any DNS entries if present.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Forwards the deserialisation to use std::net::ToSocketAddrs
instead of
FromStr
for validation which allows us to resolve DNS hostnames such as
localhost
or container network names at parse-time.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Iter = <SocketAddr as ToSocketAddrs>::Iter
type Iter = <SocketAddr as ToSocketAddrs>::Iter
Returned iterator over socket addresses which this type may correspond to. Read more
Converts this object to an iterator of resolved SocketAddr
s. Read more
Auto Trait Implementations
impl RefUnwindSafe for EndpointAddress
impl Send for EndpointAddress
impl Sync for EndpointAddress
impl Unpin for EndpointAddress
impl UnwindSafe for EndpointAddress
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more