Struct address::SocketAddressV6
source · pub struct SocketAddressV6 { /* private fields */ }
Expand description
An IPv6 address with an associated port.
Implementations§
source§impl SocketAddressV6
impl SocketAddressV6
Conversions
sourcepub const fn to_socket(&self) -> SocketAddress
pub const fn to_socket(&self) -> SocketAddress
Converts the IPv6 socket address to a socket address.
source§impl SocketAddressV6
impl SocketAddressV6
Standard Library Conversions
sourcepub const fn to_std(&self, flow_info: u32, scope_id: u32) -> SocketAddrV6
pub const fn to_std(&self, flow_info: u32, scope_id: u32) -> SocketAddrV6
Converts the address to a standard library address.
source§impl SocketAddressV6
impl SocketAddressV6
Construction
sourcepub const fn new(ip: IPv6Address, port: u16) -> Self
pub const fn new(ip: IPv6Address, port: u16) -> Self
Creates a new socket address.
source§impl SocketAddressV6
impl SocketAddressV6
Properties
Trait Implementations§
source§impl Clone for SocketAddressV6
impl Clone for SocketAddressV6
source§fn clone(&self) -> SocketAddressV6
fn clone(&self) -> SocketAddressV6
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 SocketAddressV6
impl Debug for SocketAddressV6
source§impl Display for SocketAddressV6
impl Display for SocketAddressV6
source§impl<A: Into<IPv6Address>> From<(A, u16)> for SocketAddressV6
impl<A: Into<IPv6Address>> From<(A, u16)> for SocketAddressV6
source§impl FromStr for SocketAddressV6
impl FromStr for SocketAddressV6
source§impl Hash for SocketAddressV6
impl Hash for SocketAddressV6
source§impl Ord for SocketAddressV6
impl Ord for SocketAddressV6
source§fn cmp(&self, other: &SocketAddressV6) -> Ordering
fn cmp(&self, other: &SocketAddressV6) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SocketAddressV6
impl PartialEq for SocketAddressV6
source§fn eq(&self, other: &SocketAddressV6) -> bool
fn eq(&self, other: &SocketAddressV6) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SocketAddressV6
impl PartialOrd for SocketAddressV6
source§fn partial_cmp(&self, other: &SocketAddressV6) -> Option<Ordering>
fn partial_cmp(&self, other: &SocketAddressV6) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SocketAddressV6
impl Eq for SocketAddressV6
impl StructuralPartialEq for SocketAddressV6
Auto Trait Implementations§
impl Freeze for SocketAddressV6
impl RefUnwindSafe for SocketAddressV6
impl Send for SocketAddressV6
impl Sync for SocketAddressV6
impl Unpin for SocketAddressV6
impl UnwindSafe for SocketAddressV6
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