#[non_exhaustive]pub enum CommunicationController {
Can(CanCommunicationController),
Ethernet(EthernetCommunicationController),
Flexray(FlexrayCommunicationController),
}
Expand description
wraps all different kinds of communication controller
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(CanCommunicationController)
The CommunicationController
is a CanCommunicationController
Ethernet(EthernetCommunicationController)
The CommunicationController
is an EthernetCommunicationController
Flexray(FlexrayCommunicationController)
The CommunicationController
is a FlexrayCommunicationController
Trait Implementations§
Source§impl AbstractCommunicationController for CommunicationController
impl AbstractCommunicationController for CommunicationController
Source§fn ecu_instance(&self) -> Result<EcuInstance, AutosarAbstractionError>
fn ecu_instance(&self) -> Result<EcuInstance, AutosarAbstractionError>
Source§impl Clone for CommunicationController
impl Clone for CommunicationController
Source§fn clone(&self) -> CommunicationController
fn clone(&self) -> CommunicationController
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 Debug for CommunicationController
impl Debug for CommunicationController
Source§impl From<CanCommunicationController> for CommunicationController
impl From<CanCommunicationController> for CommunicationController
Source§fn from(value: CanCommunicationController) -> Self
fn from(value: CanCommunicationController) -> Self
Converts to this type from the input type.
Source§impl From<EthernetCommunicationController> for CommunicationController
impl From<EthernetCommunicationController> for CommunicationController
Source§fn from(value: EthernetCommunicationController) -> Self
fn from(value: EthernetCommunicationController) -> Self
Converts to this type from the input type.
Source§impl From<FlexrayCommunicationController> for CommunicationController
impl From<FlexrayCommunicationController> for CommunicationController
Source§fn from(value: FlexrayCommunicationController) -> Self
fn from(value: FlexrayCommunicationController) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommunicationController
impl PartialEq for CommunicationController
Source§impl TryFrom<Element> for CommunicationController
impl TryFrom<Element> for CommunicationController
impl Eq for CommunicationController
impl StructuralPartialEq for CommunicationController
Auto Trait Implementations§
impl Freeze for CommunicationController
impl !RefUnwindSafe for CommunicationController
impl Send for CommunicationController
impl Sync for CommunicationController
impl Unpin for CommunicationController
impl !UnwindSafe for CommunicationController
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.