pub struct PreferredAddress {
pub ip_v4: String,
pub ip_v6: String,
pub port_v4: u16,
pub port_v6: u16,
pub connection_id: Bytes,
pub stateless_reset_token: StatelessResetToken,
}
Fields§
§ip_v4: String
§ip_v6: String
§port_v4: u16
§port_v6: u16
§connection_id: Bytes
§stateless_reset_token: StatelessResetToken
Trait Implementations§
Source§impl Clone for PreferredAddress
impl Clone for PreferredAddress
Source§fn clone(&self) -> PreferredAddress
fn clone(&self) -> PreferredAddress
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 PreferredAddress
impl Debug for PreferredAddress
Source§impl<'de> Deserialize<'de> for PreferredAddress
impl<'de> Deserialize<'de> for PreferredAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PreferredAddress
impl PartialEq for PreferredAddress
Source§impl Serialize for PreferredAddress
impl Serialize for PreferredAddress
impl Eq for PreferredAddress
impl StructuralPartialEq for PreferredAddress
Auto Trait Implementations§
impl Freeze for PreferredAddress
impl RefUnwindSafe for PreferredAddress
impl Send for PreferredAddress
impl Sync for PreferredAddress
impl Unpin for PreferredAddress
impl UnwindSafe for PreferredAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.