pub struct FlexrayArTpConfig(/* private fields */);
Expand description
The FlexrayArTpConfig
represents the configuration of the Flexray Autosar Transport Protocol
Implementations§
Source§impl FlexrayArTpConfig
impl FlexrayArTpConfig
Sourcepub fn set_cluster(
&self,
cluster: &FlexrayCluster,
) -> Result<(), AutosarAbstractionError>
pub fn set_cluster( &self, cluster: &FlexrayCluster, ) -> Result<(), AutosarAbstractionError>
set the Flexray cluster for the configuration
Sourcepub fn cluster(&self) -> Option<FlexrayCluster>
pub fn cluster(&self) -> Option<FlexrayCluster>
get the Flexray cluster for the configuration
Sourcepub fn create_tp_address(
&self,
name: &str,
address: u32,
) -> Result<TpAddress, AutosarAbstractionError>
pub fn create_tp_address( &self, name: &str, address: u32, ) -> Result<TpAddress, AutosarAbstractionError>
create a new TpAddress
Sourcepub fn tp_addresses(&self) -> impl Iterator<Item = TpAddress> + Send + 'static
pub fn tp_addresses(&self) -> impl Iterator<Item = TpAddress> + Send + 'static
iterate over all TpAddresses
Sourcepub fn create_flexray_ar_tp_channel(
&self,
ack_type: FrArTpAckType,
extended_addressing: bool,
maximum_message_length: MaximumMessageLengthType,
minimum_separation_time: f32,
multicast_segmentation: bool,
) -> Result<FlexrayArTpChannel, AutosarAbstractionError>
pub fn create_flexray_ar_tp_channel( &self, ack_type: FrArTpAckType, extended_addressing: bool, maximum_message_length: MaximumMessageLengthType, minimum_separation_time: f32, multicast_segmentation: bool, ) -> Result<FlexrayArTpChannel, AutosarAbstractionError>
create a new FlexrayArTpChannel
Sourcepub fn flexray_ar_tp_channels(
&self,
) -> impl Iterator<Item = FlexrayArTpChannel> + Send + 'static
pub fn flexray_ar_tp_channels( &self, ) -> impl Iterator<Item = FlexrayArTpChannel> + Send + 'static
get an iterator over the channels in the configuration
Sourcepub fn create_flexray_ar_tp_node(
&self,
name: &str,
) -> Result<FlexrayArTpNode, AutosarAbstractionError>
pub fn create_flexray_ar_tp_node( &self, name: &str, ) -> Result<FlexrayArTpNode, AutosarAbstractionError>
create a new FlexrayArTpNode
Sourcepub fn flexray_ar_tp_nodes(
&self,
) -> impl Iterator<Item = FlexrayArTpNode> + Send + 'static
pub fn flexray_ar_tp_nodes( &self, ) -> impl Iterator<Item = FlexrayArTpNode> + Send + 'static
get an iterator over the nodes
Trait Implementations§
Source§impl Clone for FlexrayArTpConfig
impl Clone for FlexrayArTpConfig
Source§fn clone(&self) -> FlexrayArTpConfig
fn clone(&self) -> FlexrayArTpConfig
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 FlexrayArTpConfig
impl Debug for FlexrayArTpConfig
Source§impl From<FlexrayArTpConfig> for Element
impl From<FlexrayArTpConfig> for Element
Source§fn from(val: FlexrayArTpConfig) -> Self
fn from(val: FlexrayArTpConfig) -> Self
Converts to this type from the input type.
Source§impl Hash for FlexrayArTpConfig
impl Hash for FlexrayArTpConfig
Source§impl PartialEq for FlexrayArTpConfig
impl PartialEq for FlexrayArTpConfig
Source§impl TryFrom<Element> for FlexrayArTpConfig
impl TryFrom<Element> for FlexrayArTpConfig
impl Eq for FlexrayArTpConfig
impl StructuralPartialEq for FlexrayArTpConfig
Auto Trait Implementations§
impl Freeze for FlexrayArTpConfig
impl !RefUnwindSafe for FlexrayArTpConfig
impl Send for FlexrayArTpConfig
impl Sync for FlexrayArTpConfig
impl Unpin for FlexrayArTpConfig
impl !UnwindSafe for FlexrayArTpConfig
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.