Struct magic_wormhole::transit::DirectHint
source · pub struct DirectHint {
pub hostname: String,
pub port: u16,
}
Expand description
hostname and port for direct connection
Fields§
§hostname: String
§port: u16
Implementations§
Trait Implementations§
source§impl Clone for DirectHint
impl Clone for DirectHint
source§fn clone(&self) -> DirectHint
fn clone(&self) -> DirectHint
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 DirectHint
impl Debug for DirectHint
source§impl<'de> Deserialize<'de> for DirectHint
impl<'de> Deserialize<'de> for DirectHint
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 Display for DirectHint
impl Display for DirectHint
source§impl Hash for DirectHint
impl Hash for DirectHint
source§impl PartialEq for DirectHint
impl PartialEq for DirectHint
source§fn 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 ==
.source§impl Serialize for DirectHint
impl Serialize for DirectHint
source§impl 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.
source§fn try_from(hint: &DirectHint) -> Result<IpAddr, AddrParseError>
fn try_from(hint: &DirectHint) -> Result<IpAddr, AddrParseError>
Performs the conversion.
source§impl TryFrom<&DirectHint> for SocketAddr
impl TryFrom<&DirectHint> for SocketAddr
source§fn 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§
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