[][src]Struct rust_ipv8::networking::address::Address

pub struct Address(pub SocketAddr);

Wrapper for a SocketAddr. Had to be wrapped to serialize it properly Currently this can only be used as an IPV4 address + port

Trait Implementations

impl PartialEq<Address> for Address[src]

impl Debug for Address[src]

impl Serialize for Address[src]

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

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
[src]

deserializes a Header

Auto Trait Implementations

impl Unpin for Address

impl Sync for Address

impl Send for Address

impl RefUnwindSafe for Address

impl UnwindSafe for Address

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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