pub struct NmConfig(/* private fields */);
Expand description
The NmConfig
is the root element for the network management configuration.
Only one config may exist per System
, and this configuration may contain multiple NmClusters
for different bus types.
Use System::create_nm_config
to create a new NmConfig
in a System
.
Implementations§
Source§impl NmConfig
impl NmConfig
Sourcepub fn create_can_nm_cluster(
&self,
name: &str,
settings: &CanNmClusterSettings,
can_cluster: &CanCluster,
) -> Result<CanNmCluster, AutosarAbstractionError>
pub fn create_can_nm_cluster( &self, name: &str, settings: &CanNmClusterSettings, can_cluster: &CanCluster, ) -> Result<CanNmCluster, AutosarAbstractionError>
create a new CanNmCluster
Sourcepub fn create_flexray_nm_cluster(
&self,
name: &str,
settings: &FlexrayNmClusterSettings,
flexray_cluster: &FlexrayCluster,
) -> Result<FlexrayNmCluster, AutosarAbstractionError>
pub fn create_flexray_nm_cluster( &self, name: &str, settings: &FlexrayNmClusterSettings, flexray_cluster: &FlexrayCluster, ) -> Result<FlexrayNmCluster, AutosarAbstractionError>
create a new FlexrayNmCluster
Sourcepub fn create_udp_nm_cluster(
&self,
name: &str,
settings: &UdpNmClusterSettings,
ethernet_cluster: &EthernetCluster,
) -> Result<UdpNmCluster, AutosarAbstractionError>
pub fn create_udp_nm_cluster( &self, name: &str, settings: &UdpNmClusterSettings, ethernet_cluster: &EthernetCluster, ) -> Result<UdpNmCluster, AutosarAbstractionError>
create a new UdpNmCluster
Sourcepub fn nm_clusters(&self) -> impl Iterator<Item = NmCluster> + Send + 'static
pub fn nm_clusters(&self) -> impl Iterator<Item = NmCluster> + Send + 'static
get all NmClusters
Sourcepub fn create_can_nm_cluster_coupling(
&self,
nm_busload_reduction_enabled: bool,
nm_immediate_restart_enabled: bool,
) -> Result<CanNmClusterCoupling, AutosarAbstractionError>
pub fn create_can_nm_cluster_coupling( &self, nm_busload_reduction_enabled: bool, nm_immediate_restart_enabled: bool, ) -> Result<CanNmClusterCoupling, AutosarAbstractionError>
create a new CanNmClusterCoupling
Sourcepub fn create_flexray_nm_cluster_coupling(
&self,
nm_schedule_variant: FlexrayNmScheduleVariant,
) -> Result<FlexrayNmClusterCoupling, AutosarAbstractionError>
pub fn create_flexray_nm_cluster_coupling( &self, nm_schedule_variant: FlexrayNmScheduleVariant, ) -> Result<FlexrayNmClusterCoupling, AutosarAbstractionError>
create a new FlexrayNmClusterCoupling
Sourcepub fn create_udp_nm_cluster_coupling(
&self,
) -> Result<UdpNmClusterCoupling, AutosarAbstractionError>
pub fn create_udp_nm_cluster_coupling( &self, ) -> Result<UdpNmClusterCoupling, AutosarAbstractionError>
create a new UdpNmClusterCoupling
Sourcepub fn nm_cluster_couplings(
&self,
) -> impl Iterator<Item = NmClusterCoupling> + Send + 'static
pub fn nm_cluster_couplings( &self, ) -> impl Iterator<Item = NmClusterCoupling> + Send + 'static
iterate over all NmClusterCouplings
Sourcepub fn create_nm_ecu(
&self,
name: &str,
ecu_instance: &EcuInstance,
) -> Result<NmEcu, AutosarAbstractionError>
pub fn create_nm_ecu( &self, name: &str, ecu_instance: &EcuInstance, ) -> Result<NmEcu, AutosarAbstractionError>
create a new NmEcu
Trait Implementations§
Source§impl AbstractionElement for NmConfig
impl AbstractionElement for NmConfig
impl Eq for NmConfig
impl StructuralPartialEq for NmConfig
Auto Trait Implementations§
impl Freeze for NmConfig
impl !RefUnwindSafe for NmConfig
impl Send for NmConfig
impl Sync for NmConfig
impl Unpin for NmConfig
impl !UnwindSafe for NmConfig
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.