pub struct DoIpTpConfig(/* private fields */);
Expand description
Container for DoIp
TP configuration
Implementations§
Source§impl DoIpTpConfig
impl DoIpTpConfig
Sourcepub fn set_cluster(
&self,
cluster: &EthernetCluster,
) -> Result<(), AutosarAbstractionError>
pub fn set_cluster( &self, cluster: &EthernetCluster, ) -> Result<(), AutosarAbstractionError>
set the reference to the EthernetCluster
for this DoIpTpConfig
Sourcepub fn cluster(&self) -> Option<EthernetCluster>
pub fn cluster(&self) -> Option<EthernetCluster>
get the EthernetCluster
for this DoIpTpConfig
Sourcepub fn create_doip_logic_address(
&self,
name: &str,
address: u32,
) -> Result<DoIpLogicAddress, AutosarAbstractionError>
pub fn create_doip_logic_address( &self, name: &str, address: u32, ) -> Result<DoIpLogicAddress, AutosarAbstractionError>
create a new DoIpLogicAddress
Sourcepub fn doip_logic_addresses(
&self,
) -> impl Iterator<Item = DoIpLogicAddress> + Send + 'static
pub fn doip_logic_addresses( &self, ) -> impl Iterator<Item = DoIpLogicAddress> + Send + 'static
iterate over all DoIpLogicAddresss
Sourcepub fn create_doip_tp_connection(
&self,
name: Option<&str>,
source: &DoIpLogicAddress,
target: &DoIpLogicAddress,
tp_sdu_triggering: &PduTriggering,
) -> Result<DoIpTpConnection, AutosarAbstractionError>
pub fn create_doip_tp_connection( &self, name: Option<&str>, source: &DoIpLogicAddress, target: &DoIpLogicAddress, tp_sdu_triggering: &PduTriggering, ) -> Result<DoIpTpConnection, AutosarAbstractionError>
create a new DoIpTpConnection
Sourcepub fn doip_tp_connections(
&self,
) -> impl Iterator<Item = DoIpTpConnection> + Send + 'static
pub fn doip_tp_connections( &self, ) -> impl Iterator<Item = DoIpTpConnection> + Send + 'static
iterate over all DoIpTpConnections
Trait Implementations§
Source§impl AbstractionElement for DoIpTpConfig
impl AbstractionElement for DoIpTpConfig
Source§impl Clone for DoIpTpConfig
impl Clone for DoIpTpConfig
Source§fn clone(&self) -> DoIpTpConfig
fn clone(&self) -> DoIpTpConfig
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 DoIpTpConfig
impl Debug for DoIpTpConfig
Source§impl From<DoIpTpConfig> for Element
impl From<DoIpTpConfig> for Element
Source§fn from(val: DoIpTpConfig) -> Self
fn from(val: DoIpTpConfig) -> Self
Converts to this type from the input type.
Source§impl Hash for DoIpTpConfig
impl Hash for DoIpTpConfig
Source§impl PartialEq for DoIpTpConfig
impl PartialEq for DoIpTpConfig
Source§impl TryFrom<Element> for DoIpTpConfig
impl TryFrom<Element> for DoIpTpConfig
impl Eq for DoIpTpConfig
impl StructuralPartialEq for DoIpTpConfig
Auto Trait Implementations§
impl Freeze for DoIpTpConfig
impl !RefUnwindSafe for DoIpTpConfig
impl Send for DoIpTpConfig
impl Sync for DoIpTpConfig
impl Unpin for DoIpTpConfig
impl !UnwindSafe for DoIpTpConfig
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.