Struct IpListenEndpoint
pub struct IpListenEndpoint {
pub addr: Option<Address>,
pub port: u16,
}Expand description
An internet endpoint address for listening.
In contrast with Endpoint, ListenEndpoint allows not specifying the address,
in order to listen on a given port at all our addresses.
An endpoint can be constructed from a port, in which case the address is unspecified.
Fields§
§addr: Option<Address>§port: u16Implementations§
§impl ListenEndpoint
impl ListenEndpoint
pub const fn is_specified(&self) -> bool
pub const fn is_specified(&self) -> bool
Query whether the endpoint has a specified address and port.
Trait Implementations§
§impl Clone for ListenEndpoint
impl Clone for ListenEndpoint
§fn clone(&self) -> ListenEndpoint
fn clone(&self) -> ListenEndpoint
Returns a duplicate 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 more§impl Debug for ListenEndpoint
impl Debug for ListenEndpoint
§impl Default for ListenEndpoint
impl Default for ListenEndpoint
§fn default() -> ListenEndpoint
fn default() -> ListenEndpoint
Returns the “default value” for a type. Read more
§impl Display for ListenEndpoint
impl Display for ListenEndpoint
§impl Format for ListenEndpoint
Available on crate feature defmt only.
impl Format for ListenEndpoint
Available on crate feature
defmt only.§impl<T> From<(T, u16)> for ListenEndpoint
impl<T> From<(T, u16)> for ListenEndpoint
§fn from(_: (T, u16)) -> ListenEndpoint
fn from(_: (T, u16)) -> ListenEndpoint
Converts to this type from the input type.
§impl From<Endpoint> for ListenEndpoint
impl From<Endpoint> for ListenEndpoint
§fn from(endpoint: Endpoint) -> ListenEndpoint
fn from(endpoint: Endpoint) -> ListenEndpoint
Converts to this type from the input type.
§impl From<SocketAddr> for ListenEndpoint
Available on crate features proto-ipv4 and proto-ipv6 only.
impl From<SocketAddr> for ListenEndpoint
Available on crate features
proto-ipv4 and proto-ipv6 only.§fn from(x: SocketAddr) -> ListenEndpoint
fn from(x: SocketAddr) -> ListenEndpoint
Converts to this type from the input type.
§impl From<SocketAddrV4> for ListenEndpoint
Available on crate feature proto-ipv4 only.
impl From<SocketAddrV4> for ListenEndpoint
Available on crate feature
proto-ipv4 only.§fn from(x: SocketAddrV4) -> ListenEndpoint
fn from(x: SocketAddrV4) -> ListenEndpoint
Converts to this type from the input type.
§impl From<SocketAddrV6> for ListenEndpoint
Available on crate feature proto-ipv6 only.
impl From<SocketAddrV6> for ListenEndpoint
Available on crate feature
proto-ipv6 only.§fn from(x: SocketAddrV6) -> ListenEndpoint
fn from(x: SocketAddrV6) -> ListenEndpoint
Converts to this type from the input type.
§impl From<u16> for ListenEndpoint
impl From<u16> for ListenEndpoint
§fn from(port: u16) -> ListenEndpoint
fn from(port: u16) -> ListenEndpoint
Converts to this type from the input type.
§impl Hash for ListenEndpoint
impl Hash for ListenEndpoint
§impl Ord for ListenEndpoint
impl Ord for ListenEndpoint
§impl PartialEq for ListenEndpoint
impl PartialEq for ListenEndpoint
§impl PartialOrd for ListenEndpoint
impl PartialOrd for ListenEndpoint
impl Copy for ListenEndpoint
impl Eq for ListenEndpoint
impl StructuralPartialEq for ListenEndpoint
Auto Trait Implementations§
impl Freeze for ListenEndpoint
impl RefUnwindSafe for ListenEndpoint
impl Send for ListenEndpoint
impl Sync for ListenEndpoint
impl Unpin for ListenEndpoint
impl UnwindSafe for ListenEndpoint
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