#[non_exhaustive]pub enum FrameTriggering {
Can(CanFrameTriggering),
Flexray(FlexrayFrameTriggering),
}
Expand description
A wrapper for CAN and FlexRay
frame triggerings
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(CanFrameTriggering)
a CAN frame triggering
Flexray(FlexrayFrameTriggering)
a FlexRay
frame triggering
Implementations§
Source§impl FrameTriggering
impl FrameTriggering
Sourcepub fn connect_to_ecu(
&self,
ecu: &EcuInstance,
direction: CommunicationDirection,
) -> Result<FramePort, AutosarAbstractionError>
pub fn connect_to_ecu( &self, ecu: &EcuInstance, direction: CommunicationDirection, ) -> Result<FramePort, AutosarAbstractionError>
connect this FrameTriggering
to an EcuInstance
The EcuInstance
must already be connected to the PhysicalChannel
that contains the FrameTriggering
.
Trait Implementations§
Source§impl AbstractFrameTriggering for FrameTriggering
impl AbstractFrameTriggering for FrameTriggering
Source§fn frame_ports(&self) -> impl Iterator<Item = FramePort> + Send + 'static
fn frame_ports(&self) -> impl Iterator<Item = FramePort> + Send + 'static
iterate over all frame ports referenced by this frame triggering Read more
Source§fn pdu_triggerings(
&self,
) -> impl Iterator<Item = PduTriggering> + Send + 'static
fn pdu_triggerings( &self, ) -> impl Iterator<Item = PduTriggering> + Send + 'static
iterate over all PDU triggerings used by this frame triggering
Source§fn physical_channel(&self) -> Result<PhysicalChannel, AutosarAbstractionError>
fn physical_channel(&self) -> Result<PhysicalChannel, AutosarAbstractionError>
get the physical channel that contains this frame triggering
Source§impl AbstractionElement for FrameTriggering
impl AbstractionElement for FrameTriggering
Source§impl Clone for FrameTriggering
impl Clone for FrameTriggering
Source§fn clone(&self) -> FrameTriggering
fn clone(&self) -> FrameTriggering
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 FrameTriggering
impl Debug for FrameTriggering
Source§impl From<CanFrameTriggering> for FrameTriggering
impl From<CanFrameTriggering> for FrameTriggering
Source§fn from(cft: CanFrameTriggering) -> Self
fn from(cft: CanFrameTriggering) -> Self
Converts to this type from the input type.
Source§impl From<FlexrayFrameTriggering> for FrameTriggering
impl From<FlexrayFrameTriggering> for FrameTriggering
Source§fn from(fft: FlexrayFrameTriggering) -> Self
fn from(fft: FlexrayFrameTriggering) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FrameTriggering
impl PartialEq for FrameTriggering
Source§impl TryFrom<Element> for FrameTriggering
impl TryFrom<Element> for FrameTriggering
impl Eq for FrameTriggering
impl StructuralPartialEq for FrameTriggering
Auto Trait Implementations§
impl Freeze for FrameTriggering
impl !RefUnwindSafe for FrameTriggering
impl Send for FrameTriggering
impl Sync for FrameTriggering
impl Unpin for FrameTriggering
impl !UnwindSafe for FrameTriggering
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.