Enum s2n_quic_core::event::api::SocketAddress
source · [−]#[non_exhaustive]
pub enum SocketAddress<'a> {
IpV4 {
ip: &'a [u8; 4],
port: u16,
},
IpV6 {
ip: &'a [u8; 16],
port: u16,
},
}Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IpV4
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
port: u16IpV6
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
port: u16Implementations
Trait Implementations
sourceimpl<'a> Clone for SocketAddress<'a>
impl<'a> Clone for SocketAddress<'a>
sourcefn clone(&self) -> SocketAddress<'a>
fn clone(&self) -> SocketAddress<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for SocketAddress<'a>
impl<'a> Debug for SocketAddress<'a>
sourceimpl<'a> Display for SocketAddress<'a>
impl<'a> Display for SocketAddress<'a>
sourceimpl From<&SocketAddress<'_>> for SocketAddr
impl From<&SocketAddress<'_>> for SocketAddr
sourcefn from(address: &SocketAddress<'_>) -> Self
fn from(address: &SocketAddress<'_>) -> Self
Converts to this type from the input type.
sourceimpl From<SocketAddress<'_>> for SocketAddr
impl From<SocketAddress<'_>> for SocketAddr
sourcefn from(address: SocketAddress<'_>) -> Self
fn from(address: SocketAddress<'_>) -> Self
Converts to this type from the input type.
sourceimpl<'a> IntoEvent<SocketAddress<'a>> for &'a SocketAddress
impl<'a> IntoEvent<SocketAddress<'a>> for &'a SocketAddress
fn into_event(self) -> SocketAddress<'a>
sourceimpl<'a> IntoEvent<SocketAddress<'a>> for SocketAddress<'a>
impl<'a> IntoEvent<SocketAddress<'a>> for SocketAddress<'a>
fn into_event(self) -> SocketAddress<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SocketAddress<'a>
impl<'a> Send for SocketAddress<'a>
impl<'a> Sync for SocketAddress<'a>
impl<'a> Unpin for SocketAddress<'a>
impl<'a> UnwindSafe for SocketAddress<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more