pub struct LinPhysicalChannel(/* private fields */);Expand description
The LinPhysicalChannel contains all of the communication on a LIN network
Implementations§
Source§impl LinPhysicalChannel
impl LinPhysicalChannel
Sourcepub fn cluster(&self) -> Result<LinCluster, AutosarAbstractionError>
pub fn cluster(&self) -> Result<LinCluster, AutosarAbstractionError>
get the cluster containing this physical channel
§Example
let channel = cluster.create_physical_channel("Channel")?;
let cluster_2 = channel.cluster()?;
assert_eq!(cluster, cluster_2);Sourcepub fn frame_triggerings(
&self,
) -> impl Iterator<Item = LinFrameTriggering> + Send + use<>
pub fn frame_triggerings( &self, ) -> impl Iterator<Item = LinFrameTriggering> + Send + use<>
iterate over all frame triggerings of this physical channel
Trait Implementations§
Source§impl AbstractPhysicalChannel for LinPhysicalChannel
impl AbstractPhysicalChannel for LinPhysicalChannel
Source§type CommunicationConnectorType = LinCommunicationConnector
type CommunicationConnectorType = LinCommunicationConnector
the type of communication connector used by this physical channel
Source§fn pdu_triggerings(
&self,
) -> impl Iterator<Item = PduTriggering> + Send + use<Self>
fn pdu_triggerings( &self, ) -> impl Iterator<Item = PduTriggering> + Send + use<Self>
iterate over all
PduTriggerings of this physical channelSource§fn signal_triggerings(
&self,
) -> impl Iterator<Item = ISignalTriggering> + Send + use<Self>
fn signal_triggerings( &self, ) -> impl Iterator<Item = ISignalTriggering> + Send + use<Self>
iterate over all
ISignalTriggerings of this physical channelSource§fn connectors(
&self,
) -> impl Iterator<Item = Self::CommunicationConnectorType> + Send + use<Self>
fn connectors( &self, ) -> impl Iterator<Item = Self::CommunicationConnectorType> + Send + use<Self>
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 Clone for LinPhysicalChannel
impl Clone for LinPhysicalChannel
Source§fn clone(&self) -> LinPhysicalChannel
fn clone(&self) -> LinPhysicalChannel
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 LinPhysicalChannel
impl Debug for LinPhysicalChannel
Source§impl From<LinPhysicalChannel> for Element
impl From<LinPhysicalChannel> for Element
Source§fn from(val: LinPhysicalChannel) -> Self
fn from(val: LinPhysicalChannel) -> Self
Converts to this type from the input type.
Source§impl From<LinPhysicalChannel> for PhysicalChannel
impl From<LinPhysicalChannel> for PhysicalChannel
Source§fn from(channel: LinPhysicalChannel) -> Self
fn from(channel: LinPhysicalChannel) -> Self
Converts to this type from the input type.
Source§impl Hash for LinPhysicalChannel
impl Hash for LinPhysicalChannel
Source§impl PartialEq for LinPhysicalChannel
impl PartialEq for LinPhysicalChannel
Source§impl TryFrom<Element> for LinPhysicalChannel
impl TryFrom<Element> for LinPhysicalChannel
impl Eq for LinPhysicalChannel
impl StructuralPartialEq for LinPhysicalChannel
Auto Trait Implementations§
impl Freeze for LinPhysicalChannel
impl !RefUnwindSafe for LinPhysicalChannel
impl Send for LinPhysicalChannel
impl Sync for LinPhysicalChannel
impl Unpin for LinPhysicalChannel
impl !UnwindSafe for LinPhysicalChannel
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.