[][src]Enum makepad_hub::HubAddr

pub enum HubAddr {
    None,
    Local {
        uid: u64,
    },
    V4 {
        octets: [u8; 4],
        port: u16,
    },
    V6 {
        octets: [u8; 16],
        port: u16,
    },
}

Variants

None
Local

Fields of Local

uid: u64
V4

Fields of V4

octets: [u8; 4]port: u16
V6

Fields of V6

octets: [u8; 16]port: u16

Methods

impl HubAddr[src]

pub fn port(&self) -> u16[src]

impl HubAddr[src]

Trait Implementations

impl Clone for HubAddr[src]

impl Copy for HubAddr[src]

impl PartialEq<HubAddr> for HubAddr[src]

impl Debug for HubAddr[src]

impl StructuralPartialEq for HubAddr[src]

impl Serialize for HubAddr[src]

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

Auto Trait Implementations

impl Send for HubAddr

impl Sync for HubAddr

impl Unpin for HubAddr

impl UnwindSafe for HubAddr

impl RefUnwindSafe for HubAddr

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

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]