#[non_exhaustive]pub struct PreferredAddress<'a> {
pub ipv4_address: Option<SocketAddress<'a>>,
pub ipv6_address: Option<SocketAddress<'a>>,
pub connection_id: ConnectionId<'a>,
pub stateless_reset_token: &'a [u8],
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ipv4_address: Option<SocketAddress<'a>>§ipv6_address: Option<SocketAddress<'a>>§connection_id: ConnectionId<'a>§stateless_reset_token: &'a [u8]Trait Implementations§
Source§impl<'a> Clone for PreferredAddress<'a>
impl<'a> Clone for PreferredAddress<'a>
Source§fn clone(&self) -> PreferredAddress<'a>
fn clone(&self) -> PreferredAddress<'a>
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 moreSource§impl<'a> Debug for PreferredAddress<'a>
impl<'a> Debug for PreferredAddress<'a>
Source§impl<'a> IntoEvent<PreferredAddress<'a>> for PreferredAddress<'a>
impl<'a> IntoEvent<PreferredAddress<'a>> for PreferredAddress<'a>
fn into_event(self) -> PreferredAddress<'a>
Auto Trait Implementations§
impl<'a> Freeze for PreferredAddress<'a>
impl<'a> RefUnwindSafe for PreferredAddress<'a>
impl<'a> Send for PreferredAddress<'a>
impl<'a> Sync for PreferredAddress<'a>
impl<'a> Unpin for PreferredAddress<'a>
impl<'a> UnwindSafe for PreferredAddress<'a>
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