Struct magic_wormhole::transit::DirectHint
source · [−]Expand description
hostname and port for direct connection
Fields
hostname: Stringport: u16Implementations
Trait Implementations
sourceimpl Clone for DirectHint
impl Clone for DirectHint
sourcefn clone(&self) -> DirectHint
fn clone(&self) -> DirectHint
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 Debug for DirectHint
impl Debug for DirectHint
sourceimpl<'de> Deserialize<'de> for DirectHint
impl<'de> Deserialize<'de> for DirectHint
sourcefn 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
sourceimpl Display for DirectHint
impl Display for DirectHint
sourceimpl Hash for DirectHint
impl Hash for DirectHint
sourceimpl PartialEq<DirectHint> for DirectHint
impl PartialEq<DirectHint> for DirectHint
sourcefn eq(&self, other: &DirectHint) -> bool
fn eq(&self, other: &DirectHint) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DirectHint) -> bool
fn ne(&self, other: &DirectHint) -> bool
This method tests for !=.
sourceimpl Serialize for DirectHint
impl Serialize for DirectHint
sourceimpl TryFrom<&'_ DirectHint> for IpAddr
impl TryFrom<&'_ DirectHint> for IpAddr
type Error = AddrParseError
type Error = AddrParseError
The type returned in the event of a conversion error.
sourcefn try_from(hint: &DirectHint) -> Result<IpAddr, AddrParseError>
fn try_from(hint: &DirectHint) -> Result<IpAddr, AddrParseError>
Performs the conversion.
sourceimpl TryFrom<&'_ DirectHint> for SocketAddr
impl TryFrom<&'_ DirectHint> for SocketAddr
sourcefn try_from(hint: &DirectHint) -> Result<SocketAddr, AddrParseError>
fn try_from(hint: &DirectHint) -> Result<SocketAddr, AddrParseError>
This does not do the obvious thing and also implicitly maps all V4 addresses into V6
type Error = AddrParseError
type Error = AddrParseError
The type returned in the event of a conversion error.
impl Eq for DirectHint
impl StructuralEq for DirectHint
impl StructuralPartialEq for DirectHint
Auto Trait Implementations
impl RefUnwindSafe for DirectHint
impl Send for DirectHint
impl Sync for DirectHint
impl Unpin for DirectHint
impl UnwindSafe for DirectHint
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more