pub struct ContainerIPdu(/* private fields */);
Expand description
Several IPdus
can be collected in one ContainerIPdu
based on the headerType
Implementations§
Source§impl ContainerIPdu
impl ContainerIPdu
Sourcepub fn set_header_type(
&self,
header_type: ContainerIPduHeaderType,
) -> Result<(), AutosarAbstractionError>
pub fn set_header_type( &self, header_type: ContainerIPduHeaderType, ) -> Result<(), AutosarAbstractionError>
set the header type of this ContainerIPdu
Sourcepub fn header_type(&self) -> Option<ContainerIPduHeaderType>
pub fn header_type(&self) -> Option<ContainerIPduHeaderType>
get the header type of this ContainerIPdu
Sourcepub fn set_rx_accept_contained_ipdu(
&self,
rx_accept: RxAcceptContainedIPdu,
) -> Result<(), AutosarAbstractionError>
pub fn set_rx_accept_contained_ipdu( &self, rx_accept: RxAcceptContainedIPdu, ) -> Result<(), AutosarAbstractionError>
set the rx accept of this ContainerIPdu
Sourcepub fn rx_accept_contained_ipdu(&self) -> Option<RxAcceptContainedIPdu>
pub fn rx_accept_contained_ipdu(&self) -> Option<RxAcceptContainedIPdu>
get the rx accept of this ContainerIPdu
Sourcepub fn set_container_timeout(
&self,
timeout: Option<f64>,
) -> Result<(), AutosarAbstractionError>
pub fn set_container_timeout( &self, timeout: Option<f64>, ) -> Result<(), AutosarAbstractionError>
set the container timeout of this ContainerIPdu
Sourcepub fn container_timeout(&self) -> Option<f64>
pub fn container_timeout(&self) -> Option<f64>
get the container timeout of this ContainerIPdu
Sourcepub fn set_container_trigger(
&self,
trigger: Option<ContainerIPduTrigger>,
) -> Result<(), AutosarAbstractionError>
pub fn set_container_trigger( &self, trigger: Option<ContainerIPduTrigger>, ) -> Result<(), AutosarAbstractionError>
set the container trigger of this ContainerIPdu
Sourcepub fn container_trigger(&self) -> Option<ContainerIPduTrigger>
pub fn container_trigger(&self) -> Option<ContainerIPduTrigger>
get the container trigger of this ContainerIPdu
Sourcepub fn map_ipdu<T: AbstractIpdu, U: AbstractPhysicalChannel>(
&self,
ipdu: &T,
physical_channel: &U,
) -> Result<PduTriggering, AutosarAbstractionError>
pub fn map_ipdu<T: AbstractIpdu, U: AbstractPhysicalChannel>( &self, ipdu: &T, physical_channel: &U, ) -> Result<PduTriggering, AutosarAbstractionError>
map an IPdu
to this ContainerIPdu
, and create a PduTriggering
for it in the physical channel
Sourcepub fn contained_ipdu_triggerings(
&self,
) -> impl Iterator<Item = PduTriggering> + Send + 'static
pub fn contained_ipdu_triggerings( &self, ) -> impl Iterator<Item = PduTriggering> + Send + 'static
iterate over all contained IPdu
triggerings
Trait Implementations§
Source§impl AbstractIpdu for ContainerIPdu
impl AbstractIpdu for ContainerIPdu
Source§fn set_contained_ipdu_props(
&self,
props: Option<&ContainedIPduProps>,
) -> Result<(), AutosarAbstractionError>
fn set_contained_ipdu_props( &self, props: Option<&ContainedIPduProps>, ) -> Result<(), AutosarAbstractionError>
Source§fn contained_ipdu_props(&self) -> Option<ContainedIPduProps>
fn contained_ipdu_props(&self) -> Option<ContainedIPduProps>
get the
ContainedIPduProps
for this IPdu
Source§impl AbstractPdu for ContainerIPdu
impl AbstractPdu for ContainerIPdu
Source§fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
set the length of the PDU
Source§fn pdu_triggerings(&self) -> Vec<PduTriggering>
fn pdu_triggerings(&self) -> Vec<PduTriggering>
list all
PduTriggerings
that trigger this PDUSource§impl AbstractionElement for ContainerIPdu
impl AbstractionElement for ContainerIPdu
Source§impl Clone for ContainerIPdu
impl Clone for ContainerIPdu
Source§fn clone(&self) -> ContainerIPdu
fn clone(&self) -> ContainerIPdu
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 ContainerIPdu
impl Debug for ContainerIPdu
Source§impl From<ContainerIPdu> for Element
impl From<ContainerIPdu> for Element
Source§fn from(val: ContainerIPdu) -> Self
fn from(val: ContainerIPdu) -> Self
Converts to this type from the input type.
Source§impl From<ContainerIPdu> for IPdu
impl From<ContainerIPdu> for IPdu
Source§fn from(value: ContainerIPdu) -> Self
fn from(value: ContainerIPdu) -> Self
Converts to this type from the input type.
Source§impl From<ContainerIPdu> for Pdu
impl From<ContainerIPdu> for Pdu
Source§fn from(value: ContainerIPdu) -> Self
fn from(value: ContainerIPdu) -> Self
Converts to this type from the input type.
Source§impl Hash for ContainerIPdu
impl Hash for ContainerIPdu
Source§impl PartialEq for ContainerIPdu
impl PartialEq for ContainerIPdu
Source§impl TryFrom<Element> for ContainerIPdu
impl TryFrom<Element> for ContainerIPdu
impl Eq for ContainerIPdu
impl StructuralPartialEq for ContainerIPdu
Auto Trait Implementations§
impl Freeze for ContainerIPdu
impl !RefUnwindSafe for ContainerIPdu
impl Send for ContainerIPdu
impl Sync for ContainerIPdu
impl Unpin for ContainerIPdu
impl !UnwindSafe for ContainerIPdu
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.