pub struct Node {
pub which_node: Option<WhichNode>,
}
Fields§
§which_node: Option<WhichNode>
Implementations§
Source§impl Node
impl Node
pub fn as_asset(&self) -> Option<&Asset>
pub fn into_asset(self) -> Option<Asset>
pub fn as_mut_asset(&mut self) -> Option<&mut Asset>
pub fn as_process(&self) -> Option<&Process>
pub fn into_process(self) -> Option<Process>
pub fn as_mut_process(&mut self) -> Option<&mut Process>
pub fn as_file(&self) -> Option<&File>
pub fn into_file(self) -> Option<File>
pub fn as_mut_file(&mut self) -> Option<&mut File>
pub fn as_ip_address(&self) -> Option<&IpAddress>
pub fn into_ip_address(self) -> Option<IpAddress>
pub fn as_mut_ip_address(&mut self) -> Option<&mut IpAddress>
pub fn as_process_outbound_connection( &self, ) -> Option<&ProcessOutboundConnection>
pub fn into_process_outbound_connection( self, ) -> Option<ProcessOutboundConnection>
pub fn as_mut_process_outbound_connection( &mut self, ) -> Option<&mut ProcessOutboundConnection>
pub fn as_process_inbound_connection(&self) -> Option<&ProcessInboundConnection>
pub fn into_process_inbound_connection(self) -> Option<ProcessInboundConnection>
pub fn as_mut_process_inbound_connection( &mut self, ) -> Option<&mut ProcessInboundConnection>
pub fn as_ip_port(&self) -> Option<&IpPort>
pub fn as_network_connection(&self) -> Option<&NetworkConnection>
pub fn into_network_connection(self) -> Option<NetworkConnection>
pub fn as_mut_network_connection(&mut self) -> Option<&mut NetworkConnection>
pub fn as_ip_connection(&self) -> Option<&IpConnection>
pub fn into_ip_connection(self) -> Option<IpConnection>
pub fn as_mut_ip_connection(&mut self) -> Option<&mut IpConnection>
pub fn as_dynamic_node(&self) -> Option<&DynamicNode>
pub fn into_dynamic_node(self) -> Option<DynamicNode>
pub fn as_mut_dynamic_node(&mut self) -> Option<&mut DynamicNode>
pub fn into_json(self) -> Value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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<DynamicNode> for Node
impl From<DynamicNode> for Node
Source§fn from(dynamic_node: DynamicNode) -> Self
fn from(dynamic_node: DynamicNode) -> Self
Converts to this type from the input type.
Source§impl From<IpConnection> for Node
impl From<IpConnection> for Node
Source§fn from(ip_connection: IpConnection) -> Self
fn from(ip_connection: IpConnection) -> Self
Converts to this type from the input type.
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 From<ProcessInboundConnection> for Node
impl From<ProcessInboundConnection> for Node
Source§fn from(process_inbound_connection: ProcessInboundConnection) -> Self
fn from(process_inbound_connection: ProcessInboundConnection) -> Self
Converts to this type from the input type.
Source§impl From<ProcessOutboundConnection> for Node
impl From<ProcessOutboundConnection> for Node
Source§fn from(process_outbound_connection: ProcessOutboundConnection) -> Self
fn from(process_outbound_connection: ProcessOutboundConnection) -> Self
Converts to this type from the input type.
Source§impl Message for Node
impl Message for Node
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 Node
impl NodeT for Node
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
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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