pub struct FramePort(/* private fields */);
Expand description
The FramePort
allows an ECU to send or receive a frame
Implementations§
Source§impl FramePort
impl FramePort
Sourcepub fn ecu(&self) -> Result<EcuInstance, AutosarAbstractionError>
pub fn ecu(&self) -> Result<EcuInstance, AutosarAbstractionError>
get the ECU instance that contains this frame port
Sourcepub fn set_communication_direction(
&self,
direction: CommunicationDirection,
) -> Result<(), AutosarAbstractionError>
pub fn set_communication_direction( &self, direction: CommunicationDirection, ) -> Result<(), AutosarAbstractionError>
set the communication direction of the frame port
Sourcepub fn communication_direction(&self) -> Option<CommunicationDirection>
pub fn communication_direction(&self) -> Option<CommunicationDirection>
get the communication direction of the frame port
Trait Implementations§
Source§impl AbstractionElement for FramePort
impl AbstractionElement for FramePort
impl Eq for FramePort
impl StructuralPartialEq for FramePort
Auto Trait Implementations§
impl Freeze for FramePort
impl !RefUnwindSafe for FramePort
impl Send for FramePort
impl Sync for FramePort
impl Unpin for FramePort
impl !UnwindSafe for FramePort
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.