[][src]Struct grapl_graph_descriptions::graph_description::InboundConnection

pub struct InboundConnection {
    pub node_key: String,
    pub asset_id: Option<String>,
    pub hostname: Option<String>,
    pub host_ip: Option<String>,
    pub state: u32,
    pub created_timestamp: u64,
    pub terminated_timestamp: u64,
    pub last_seen_timestamp: u64,
    pub port: u32,
}

Fields

node_key: Stringasset_id: Option<String>hostname: Option<String>host_ip: Option<String>state: u32

1 = Created, 2 = Terminated, 3 = Existing

created_timestamp: u64terminated_timestamp: u64last_seen_timestamp: u64port: u32

Methods

impl InboundConnection[src]

pub fn new(
    asset_id: impl Into<Option<String>>,
    hostname: impl Into<Option<String>>,
    host_ip: impl Into<Option<String>>,
    state: ConnectionState,
    port: u32,
    timestamp: u64
) -> InboundConnection
[src]

pub fn clone_key(&self) -> String[src]

pub fn get_key(&self) -> &str[src]

pub fn into_json(self) -> Value[src]

pub fn set_key(&mut self, key: String)[src]

pub fn set_asset_id(&mut self, asset_id: String)[src]

pub fn get_asset_id(&self) -> Option<&String>[src]

pub fn merge(&mut self, other: &Self)[src]

pub fn timestamp(&self) -> u64[src]

impl InboundConnection[src]

pub fn asset_id(&self) -> &str[src]

Trait Implementations

impl From<InboundConnection> for NodeDescription[src]

impl Clone for InboundConnection[src]

impl Default for InboundConnection[src]

impl Eq for InboundConnection[src]

impl PartialEq<InboundConnection> for InboundConnection[src]

impl Debug for InboundConnection[src]

impl StructuralPartialEq for InboundConnection[src]

impl StructuralEq for InboundConnection[src]

impl Message for InboundConnection[src]

impl Serialize for InboundConnection[src]

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

Auto Trait Implementations

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>,