pub struct FlexrayArTpChannel(/* private fields */);
Expand description
The FlexrayArTpChannel
represents a channel in the Flexray Autosar Transport Protocol
Implementations§
Source§impl FlexrayArTpChannel
impl FlexrayArTpChannel
Sourcepub fn set_ack_type(
&self,
ack_type: FrArTpAckType,
) -> Result<(), AutosarAbstractionError>
pub fn set_ack_type( &self, ack_type: FrArTpAckType, ) -> Result<(), AutosarAbstractionError>
set the ack type of the channel
Sourcepub fn ack_type(&self) -> Option<FrArTpAckType>
pub fn ack_type(&self) -> Option<FrArTpAckType>
get the ack type of the channel
Sourcepub fn set_extended_addressing(
&self,
extended_addressing: bool,
) -> Result<(), AutosarAbstractionError>
pub fn set_extended_addressing( &self, extended_addressing: bool, ) -> Result<(), AutosarAbstractionError>
set the extended addressing attribute
When extended addressing is enabled, the TP address is 16 bit long, otherwise it is 8 bit long.
Sourcepub fn extended_addressing(&self) -> Option<bool>
pub fn extended_addressing(&self) -> Option<bool>
get the extended addressing attribute
When extended addressing is enabled, the TP address is 16 bit long, otherwise it is 8 bit long.
Sourcepub fn set_maximum_message_length(
&self,
maximum_message_length: MaximumMessageLengthType,
) -> Result<(), AutosarAbstractionError>
pub fn set_maximum_message_length( &self, maximum_message_length: MaximumMessageLengthType, ) -> Result<(), AutosarAbstractionError>
set the maximum message length type
Sourcepub fn maximum_message_length(&self) -> Option<MaximumMessageLengthType>
pub fn maximum_message_length(&self) -> Option<MaximumMessageLengthType>
get the maximum message length type
Sourcepub fn set_minimum_separation_time(
&self,
minimum_separation_time: f32,
) -> Result<(), AutosarAbstractionError>
pub fn set_minimum_separation_time( &self, minimum_separation_time: f32, ) -> Result<(), AutosarAbstractionError>
set the minimum separation time
Sourcepub fn minimum_separation_time(&self) -> Option<f32>
pub fn minimum_separation_time(&self) -> Option<f32>
get the minimum separation time
Sourcepub fn set_multicast_segmentation(
&self,
multicast_segmentation: bool,
) -> Result<(), AutosarAbstractionError>
pub fn set_multicast_segmentation( &self, multicast_segmentation: bool, ) -> Result<(), AutosarAbstractionError>
set the multicast segmentation attribute
Sourcepub fn multicast_segmentation(&self) -> Option<bool>
pub fn multicast_segmentation(&self) -> Option<bool>
get the multicast segmentation attribute
Sourcepub fn create_flexray_ar_tp_connection<T: AbstractIpdu>(
&self,
name: Option<&str>,
direct_tp_sdu: &T,
source: &FlexrayArTpNode,
target: &FlexrayArTpNode,
) -> Result<FlexrayArTpConnection, AutosarAbstractionError>
pub fn create_flexray_ar_tp_connection<T: AbstractIpdu>( &self, name: Option<&str>, direct_tp_sdu: &T, source: &FlexrayArTpNode, target: &FlexrayArTpNode, ) -> Result<FlexrayArTpConnection, AutosarAbstractionError>
create a new FlexrayArTpConnection
for this channel
Sourcepub fn flexray_ar_tp_connections(
&self,
) -> impl Iterator<Item = FlexrayArTpConnection> + Send + 'static
pub fn flexray_ar_tp_connections( &self, ) -> impl Iterator<Item = FlexrayArTpConnection> + Send + 'static
get an iterator over the connections in the channel
Trait Implementations§
Source§impl Clone for FlexrayArTpChannel
impl Clone for FlexrayArTpChannel
Source§fn clone(&self) -> FlexrayArTpChannel
fn clone(&self) -> FlexrayArTpChannel
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 FlexrayArTpChannel
impl Debug for FlexrayArTpChannel
Source§impl From<FlexrayArTpChannel> for Element
impl From<FlexrayArTpChannel> for Element
Source§fn from(val: FlexrayArTpChannel) -> Self
fn from(val: FlexrayArTpChannel) -> Self
Converts to this type from the input type.
Source§impl Hash for FlexrayArTpChannel
impl Hash for FlexrayArTpChannel
Source§impl PartialEq for FlexrayArTpChannel
impl PartialEq for FlexrayArTpChannel
Source§impl TryFrom<Element> for FlexrayArTpChannel
impl TryFrom<Element> for FlexrayArTpChannel
impl Eq for FlexrayArTpChannel
impl StructuralPartialEq for FlexrayArTpChannel
Auto Trait Implementations§
impl Freeze for FlexrayArTpChannel
impl !RefUnwindSafe for FlexrayArTpChannel
impl Send for FlexrayArTpChannel
impl Sync for FlexrayArTpChannel
impl Unpin for FlexrayArTpChannel
impl !UnwindSafe for FlexrayArTpChannel
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.