[][src]Enum networking::peers::Layer3Addr

pub enum Layer3Addr {
    V4([u8; 4]),
    V6([u16; 8]),
}

representation of an IpAddr that can be saved to a file, the purpose of this being the ability to connect to stable global peers even after the cnnection has been closed for a time

Variants

Implementations

impl Layer3Addr[src]

pub fn newv4(v1: u8, v2: u8, v3: u8, v4: u8) -> Self[src]

pub fn newv6(
    v1: u16,
    v2: u16,
    v3: u16,
    v4: u16,
    v5: u16,
    v6: u16,
    v7: u16,
    v8: u16
) -> Self
[src]

Trait Implementations

impl Clone for Layer3Addr[src]

impl Copy for Layer3Addr[src]

impl Debug for Layer3Addr[src]

impl<'de> Deserialize<'de> for Layer3Addr[src]

impl Display for Layer3Addr[src]

impl Eq for Layer3Addr[src]

impl<'_> From<&'_ IpAddr> for Layer3Addr[src]

impl<'_> From<&'_ Layer3Addr> for IpAddr[src]

impl From<IpAddr> for Layer3Addr[src]

impl From<Layer3Addr> for IpAddr[src]

impl Hash for Layer3Addr[src]

impl Ord for Layer3Addr[src]

impl PartialEq<IpAddr> for Layer3Addr[src]

impl PartialEq<Layer3Addr> for Layer3Addr[src]

impl PartialEq<Layer3Addr> for IpAddr[src]

impl PartialOrd<Layer3Addr> for Layer3Addr[src]

impl Serialize for Layer3Addr[src]

impl StructuralEq for Layer3Addr[src]

impl StructuralPartialEq for Layer3Addr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<V> HashValue for V where
    V: 'static + Debug + Serialize + DeserializeOwned + Send + Clone + Sync
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,