#[non_exhaustive]pub enum Cluster {
Can(CanCluster),
Ethernet(EthernetCluster),
FlexRay(FlexrayCluster),
}
Expand description
A Cluster
is returned by System::clusters
.
It can contain any supported communication cluster.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Can(CanCluster)
The Cluster is a CanCluster
Ethernet(EthernetCluster)
The Cluster is an EthernetCluster
FlexRay(FlexrayCluster)
The Cluster is a FlexrayCluster
Trait Implementations§
Source§impl AbstractCluster for Cluster
impl AbstractCluster for Cluster
Source§impl AbstractionElement for Cluster
impl AbstractionElement for Cluster
Source§impl From<CanCluster> for Cluster
impl From<CanCluster> for Cluster
Source§fn from(value: CanCluster) -> Self
fn from(value: CanCluster) -> Self
Converts to this type from the input type.
Source§impl From<EthernetCluster> for Cluster
impl From<EthernetCluster> for Cluster
Source§fn from(value: EthernetCluster) -> Self
fn from(value: EthernetCluster) -> Self
Converts to this type from the input type.
Source§impl From<FlexrayCluster> for Cluster
impl From<FlexrayCluster> for Cluster
Source§fn from(value: FlexrayCluster) -> Self
fn from(value: FlexrayCluster) -> Self
Converts to this type from the input type.
impl Eq for Cluster
impl StructuralPartialEq for Cluster
Auto Trait Implementations§
impl Freeze for Cluster
impl !RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl !UnwindSafe for Cluster
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.