pub struct NoCommonFamily {
pub local: Vec<Family>,
pub peer: Vec<Family>,
}Expand description
The local host and the peer share no reachable address family, so there is no address to dial.
This is a clean, immediate, non-hanging outcome (e.g. an IPv6-only peer from an IPv4-only host): the caller reports the peer unreachable rather than launching attempts that can only time out.
Fields§
§local: Vec<Family>The families the local host can originate on.
peer: Vec<Family>The families the peer offers candidates on.
Trait Implementations§
Source§impl Clone for NoCommonFamily
impl Clone for NoCommonFamily
Source§fn clone(&self) -> NoCommonFamily
fn clone(&self) -> NoCommonFamily
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NoCommonFamily
impl Debug for NoCommonFamily
Source§impl Display for NoCommonFamily
impl Display for NoCommonFamily
impl Eq for NoCommonFamily
Source§impl Error for NoCommonFamily
impl Error for NoCommonFamily
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NoCommonFamily
impl PartialEq for NoCommonFamily
impl StructuralPartialEq for NoCommonFamily
Auto Trait Implementations§
impl Freeze for NoCommonFamily
impl RefUnwindSafe for NoCommonFamily
impl Send for NoCommonFamily
impl Sync for NoCommonFamily
impl Unpin for NoCommonFamily
impl UnsafeUnpin for NoCommonFamily
impl UnwindSafe for NoCommonFamily
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