pub struct ISignalPort(/* private fields */);
Expand description
The ISignalPort
allows an ECU to send or receive a Signal
Implementations§
Source§impl ISignalPort
impl ISignalPort
Sourcepub fn ecu(&self) -> Result<EcuInstance, AutosarAbstractionError>
pub fn ecu(&self) -> Result<EcuInstance, AutosarAbstractionError>
get the ECU that is connected to this signal 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 this port
Sourcepub fn communication_direction(&self) -> Option<CommunicationDirection>
pub fn communication_direction(&self) -> Option<CommunicationDirection>
get the communication direction of this port
Trait Implementations§
Source§impl AbstractionElement for ISignalPort
impl AbstractionElement for ISignalPort
Source§impl Clone for ISignalPort
impl Clone for ISignalPort
Source§fn clone(&self) -> ISignalPort
fn clone(&self) -> ISignalPort
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 ISignalPort
impl Debug for ISignalPort
Source§impl From<ISignalPort> for Element
impl From<ISignalPort> for Element
Source§fn from(val: ISignalPort) -> Self
fn from(val: ISignalPort) -> Self
Converts to this type from the input type.
Source§impl Hash for ISignalPort
impl Hash for ISignalPort
Source§impl PartialEq for ISignalPort
impl PartialEq for ISignalPort
Source§impl TryFrom<Element> for ISignalPort
impl TryFrom<Element> for ISignalPort
impl Eq for ISignalPort
impl StructuralPartialEq for ISignalPort
Auto Trait Implementations§
impl Freeze for ISignalPort
impl !RefUnwindSafe for ISignalPort
impl Send for ISignalPort
impl Sync for ISignalPort
impl Unpin for ISignalPort
impl !UnwindSafe for ISignalPort
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.