pub struct NullSocketAddr;
Expand description
Simplified “SocketAddr” for NullSocket
. Does nothing.
Trait Implementations§
Source§impl Clone for NullSocketAddr
impl Clone for NullSocketAddr
Source§fn clone(&self) -> NullSocketAddr
fn clone(&self) -> NullSocketAddr
Returns a copy 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 Debug for NullSocketAddr
impl Debug for NullSocketAddr
Source§impl Display for NullSocketAddr
impl Display for NullSocketAddr
Source§impl Hash for NullSocketAddr
impl Hash for NullSocketAddr
Source§impl PartialEq for NullSocketAddr
impl PartialEq for NullSocketAddr
Source§impl SocketAddrExt for NullSocketAddr
impl SocketAddrExt for NullSocketAddr
Source§fn is_multicast(&self) -> bool
fn is_multicast(&self) -> bool
Determines if the address in this
SocketAddr
is a multicast/broadcast address or not.Source§fn conforming_to(&self, _local: Self) -> Option<Self>
fn conforming_to(&self, _local: Self) -> Option<Self>
Returns a version of this socket address that conforms to the address type of
local
,
or None
if such a conversion is not possible. Read moreSource§fn addr_to_string(&self) -> String
fn addr_to_string(&self) -> String
Renders the address portion to a string.
Source§fn as_uri_buf(&self, scheme: &str) -> UriBuf
fn as_uri_buf(&self, scheme: &str) -> UriBuf
Creates a URI from this
SocketAddr
using the given scheme.Source§impl ToSocketAddrs for NullSocketAddr
impl ToSocketAddrs for NullSocketAddr
Source§type Iter = IntoIter<<NullSocketAddr as ToSocketAddrs>::SocketAddr>
type Iter = IntoIter<<NullSocketAddr as ToSocketAddrs>::SocketAddr>
Analogous to
std::net::ToSocketAddrs::Iter
Source§type SocketAddr = NullSocketAddr
type SocketAddr = NullSocketAddr
The
SocketAddr
type returned by the above iterator.Source§fn to_socket_addrs(&self) -> Result<Self::Iter, Self::Error>
fn to_socket_addrs(&self) -> Result<Self::Iter, Self::Error>
Analogous to
std::net::ToSocketAddrs::to_socket_addrs
impl Copy for NullSocketAddr
impl Eq for NullSocketAddr
impl StructuralPartialEq for NullSocketAddr
Auto Trait Implementations§
impl Freeze for NullSocketAddr
impl RefUnwindSafe for NullSocketAddr
impl Send for NullSocketAddr
impl Sync for NullSocketAddr
impl Unpin for NullSocketAddr
impl UnwindSafe for NullSocketAddr
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