pub struct DirectHint {
pub hostname: String,
pub port: u16,
}Expand description
hostname and port for direct connection
Fields§
§hostname: StringThe hostname via which to reach this peer
port: u16The port to use
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§impl Serialize for DirectHint
impl Serialize for DirectHint
source§impl TryFrom<&DirectHint> for IpAddr
impl TryFrom<&DirectHint> for IpAddr
source§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
source§type Error = AddrParseError
type Error = AddrParseError
The type returned in the event of a conversion error.
impl Eq for DirectHint
impl StructuralPartialEq for DirectHint
Auto Trait Implementations§
impl Freeze for DirectHint
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
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)