pub enum PhysicalChannel {
Can(CanPhysicalChannel),
Ethernet(EthernetPhysicalChannel),
Flexray(FlexrayPhysicalChannel),
}
Expand description
A physical channel is a communication channel between two ECUs.
This enum wraps the different physical channel types.
Variants§
Can(CanPhysicalChannel)
A CAN physical channel
Ethernet(EthernetPhysicalChannel)
An Ethernet physical channel
Flexray(FlexrayPhysicalChannel)
A FlexRay
physical channel
Trait Implementations§
Source§impl AbstractPhysicalChannel for PhysicalChannel
impl AbstractPhysicalChannel for PhysicalChannel
Source§type CommunicationConnectorType = CommunicationConnector
type CommunicationConnectorType = CommunicationConnector
the type of communication connector used by this physical channel
Source§fn pdu_triggerings(
&self,
) -> impl Iterator<Item = PduTriggering> + Send + 'static
fn pdu_triggerings( &self, ) -> impl Iterator<Item = PduTriggering> + Send + 'static
iterate over all
PduTriggerings
of this physical channelSource§fn signal_triggerings(
&self,
) -> impl Iterator<Item = ISignalTriggering> + Send + 'static
fn signal_triggerings( &self, ) -> impl Iterator<Item = ISignalTriggering> + Send + 'static
iterate over all
ISignalTriggerings
of this physical channelSource§fn connectors(
&self,
) -> impl Iterator<Item = Self::CommunicationConnectorType> + Send + 'static
fn connectors( &self, ) -> impl Iterator<Item = Self::CommunicationConnectorType> + Send + 'static
iterate over all connectors between this physical channel and any ECU Read more
Source§fn ecu_connector(
&self,
ecu_instance: &EcuInstance,
) -> Option<Self::CommunicationConnectorType>
fn ecu_connector( &self, ecu_instance: &EcuInstance, ) -> Option<Self::CommunicationConnectorType>
get the connector element between this channel and an ecu
Source§impl AbstractionElement for PhysicalChannel
impl AbstractionElement for PhysicalChannel
Source§impl Clone for PhysicalChannel
impl Clone for PhysicalChannel
Source§fn clone(&self) -> PhysicalChannel
fn clone(&self) -> PhysicalChannel
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 PhysicalChannel
impl Debug for PhysicalChannel
Source§impl From<CanPhysicalChannel> for PhysicalChannel
impl From<CanPhysicalChannel> for PhysicalChannel
Source§fn from(channel: CanPhysicalChannel) -> Self
fn from(channel: CanPhysicalChannel) -> Self
Converts to this type from the input type.
Source§impl From<EthernetPhysicalChannel> for PhysicalChannel
impl From<EthernetPhysicalChannel> for PhysicalChannel
Source§fn from(channel: EthernetPhysicalChannel) -> Self
fn from(channel: EthernetPhysicalChannel) -> Self
Converts to this type from the input type.
Source§impl From<FlexrayPhysicalChannel> for PhysicalChannel
impl From<FlexrayPhysicalChannel> for PhysicalChannel
Source§fn from(channel: FlexrayPhysicalChannel) -> Self
fn from(channel: FlexrayPhysicalChannel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PhysicalChannel
impl PartialEq for PhysicalChannel
Source§impl TryFrom<Element> for PhysicalChannel
impl TryFrom<Element> for PhysicalChannel
impl Eq for PhysicalChannel
impl StructuralPartialEq for PhysicalChannel
Auto Trait Implementations§
impl Freeze for PhysicalChannel
impl !RefUnwindSafe for PhysicalChannel
impl Send for PhysicalChannel
impl Sync for PhysicalChannel
impl Unpin for PhysicalChannel
impl !UnwindSafe for PhysicalChannel
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.