[][src]Enum grapl_graph_descriptions::graph_description::host::HostId

pub enum HostId {
    Hostname(String),
    Ip(String),
    AssetId(String),
}

Variants

Hostname(String)

the hostname of the host

Ip(String)

the ip address of the host

AssetId(String)

The asset ID itself We expect this to be the variant once we have attributed the node

Methods

impl HostId[src]

pub fn encode<B>(&self, buf: &mut B) where
    B: BufMut
[src]

pub fn merge<B>(
    field: &mut Option<HostId>,
    tag: u32,
    wire_type: WireType,
    buf: &mut B
) -> Result<(), DecodeError> where
    B: Buf
[src]

pub fn encoded_len(&self) -> usize[src]

Trait Implementations

impl From<HostId> for HostIdentifier[src]

impl From<HostIdentifier> for HostId[src]

impl Clone for HostId[src]

impl Eq for HostId[src]

impl PartialEq<HostId> for HostId[src]

impl Debug for HostId[src]

impl StructuralPartialEq for HostId[src]

impl StructuralEq for HostId[src]

impl Serialize for HostId[src]

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

Auto Trait Implementations

impl Send for HostId

impl Sync for HostId

impl Unpin for HostId

impl UnwindSafe for HostId

impl RefUnwindSafe for HostId

Blanket Implementations

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

impl<T> From<T> for 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 = 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]

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