pub struct SystemMetadata<CommMetadata: CommunicationMetadata> {
pub id: SystemNodeId,
pub role: NodeRole,
pub clusters: Vec<SystemClusterId, CLUSTERS_PER_TRANSLATOR>,
pub communication: CommMetadata,
}Expand description
Metadata associated to the node at the system level.
Fields§
§id: SystemNodeId§role: NodeRole§clusters: Vec<SystemClusterId, CLUSTERS_PER_TRANSLATOR>§communication: CommMetadataImplementations§
Source§impl<CommMetadata: CommunicationMetadata> SystemMetadata<CommMetadata>
impl<CommMetadata: CommunicationMetadata> SystemMetadata<CommMetadata>
pub fn same_cluster(&self, cluster_id: SystemClusterId) -> bool
pub fn log_clusters(&self) -> String<50>
Trait Implementations§
Source§impl<CommMetadata: Clone + CommunicationMetadata> Clone for SystemMetadata<CommMetadata>
impl<CommMetadata: Clone + CommunicationMetadata> Clone for SystemMetadata<CommMetadata>
Source§fn clone(&self) -> SystemMetadata<CommMetadata>
fn clone(&self) -> SystemMetadata<CommMetadata>
Returns a duplicate 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<CommMetadata: Debug + CommunicationMetadata> Debug for SystemMetadata<CommMetadata>
impl<CommMetadata: Debug + CommunicationMetadata> Debug for SystemMetadata<CommMetadata>
Source§impl<'de, CommMetadata> Deserialize<'de> for SystemMetadata<CommMetadata>where
CommMetadata: Deserialize<'de> + CommunicationMetadata,
impl<'de, CommMetadata> Deserialize<'de> for SystemMetadata<CommMetadata>where
CommMetadata: Deserialize<'de> + CommunicationMetadata,
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<CommMetadata: CommunicationMetadata + SerializableMetadata> Display for SystemMetadata<CommMetadata>
impl<CommMetadata: CommunicationMetadata + SerializableMetadata> Display for SystemMetadata<CommMetadata>
Source§impl<CommMetadata: PartialEq + CommunicationMetadata> PartialEq for SystemMetadata<CommMetadata>
impl<CommMetadata: PartialEq + CommunicationMetadata> PartialEq for SystemMetadata<CommMetadata>
Source§fn eq(&self, other: &SystemMetadata<CommMetadata>) -> bool
fn eq(&self, other: &SystemMetadata<CommMetadata>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<CommMetadata> Serialize for SystemMetadata<CommMetadata>where
CommMetadata: Serialize + CommunicationMetadata,
impl<CommMetadata> Serialize for SystemMetadata<CommMetadata>where
CommMetadata: Serialize + CommunicationMetadata,
impl<CommMetadata: CommunicationMetadata + SerializableMetadata> BasicMetadata for SystemMetadata<CommMetadata>
impl<CommMetadata: Eq + CommunicationMetadata> Eq for SystemMetadata<CommMetadata>
impl<CommMetadata: CommunicationMetadata + SerializableMetadata> SerializableMetadata for SystemMetadata<CommMetadata>
impl<CommMetadata: CommunicationMetadata> StructuralPartialEq for SystemMetadata<CommMetadata>
Auto Trait Implementations§
impl<CommMetadata> Freeze for SystemMetadata<CommMetadata>where
CommMetadata: Freeze,
impl<CommMetadata> RefUnwindSafe for SystemMetadata<CommMetadata>where
CommMetadata: RefUnwindSafe,
impl<CommMetadata> Send for SystemMetadata<CommMetadata>where
CommMetadata: Send,
impl<CommMetadata> Sync for SystemMetadata<CommMetadata>where
CommMetadata: Sync,
impl<CommMetadata> Unpin for SystemMetadata<CommMetadata>where
CommMetadata: Unpin,
impl<CommMetadata> UnwindSafe for SystemMetadata<CommMetadata>where
CommMetadata: UnwindSafe,
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