pub struct NetworkConnection {
pub node_key: String,
pub src_ip_address: String,
pub dst_ip_address: String,
pub protocol: String,
pub src_port: u32,
pub dst_port: u32,
pub created_timestamp: u64,
pub terminated_timestamp: u64,
pub last_seen_timestamp: u64,
pub state: u32,
}
Fields§
§node_key: String
§src_ip_address: String
§dst_ip_address: String
§protocol: String
§src_port: u32
§dst_port: u32
§created_timestamp: u64
§terminated_timestamp: u64
§last_seen_timestamp: u64
§state: u32
Implementations§
Source§impl NetworkConnection
impl NetworkConnection
pub fn new( src_ip_address: impl Into<String>, dst_ip_address: impl Into<String>, protocol: impl Into<String>, src_port: u16, dst_port: u16, state: NetworkConnectionState, created_timestamp: u64, terminated_timestamp: u64, last_seen_timestamp: u64, ) -> Self
pub fn into_json(self) -> Value
Trait Implementations§
Source§impl Clone for NetworkConnection
impl Clone for NetworkConnection
Source§fn clone(&self) -> NetworkConnection
fn clone(&self) -> NetworkConnection
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NetworkConnection
impl Debug for NetworkConnection
Source§impl Default for NetworkConnection
impl Default for NetworkConnection
Source§fn default() -> NetworkConnection
fn default() -> NetworkConnection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkConnection
impl<'de> Deserialize<'de> for NetworkConnection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NetworkConnection> for Node
impl From<NetworkConnection> for Node
Source§fn from(network_connection: NetworkConnection) -> Self
fn from(network_connection: NetworkConnection) -> Self
Converts to this type from the input type.
Source§impl Message for NetworkConnection
impl Message for NetworkConnection
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl NodeT for NetworkConnection
impl NodeT for NetworkConnection
fn get_asset_id(&self) -> Option<&str>
fn set_asset_id(&mut self, _asset_id: impl Into<String>)
fn get_node_key(&self) -> &str
fn set_node_key(&mut self, node_key: impl Into<String>)
fn merge(&mut self, other: &Self) -> bool
fn merge_into(&mut self, other: Self) -> bool
fn clone_asset_id(&self) -> Option<String>
fn clone_node_key(&self) -> String
Source§impl PartialEq for NetworkConnection
impl PartialEq for NetworkConnection
Source§impl Serialize for NetworkConnection
impl Serialize for NetworkConnection
impl Eq for NetworkConnection
impl StructuralPartialEq for NetworkConnection
Auto Trait Implementations§
impl Freeze for NetworkConnection
impl RefUnwindSafe for NetworkConnection
impl Send for NetworkConnection
impl Sync for NetworkConnection
impl Unpin for NetworkConnection
impl UnwindSafe for NetworkConnection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more