pub struct NmEcu(/* private fields */);
Expand description
The NmEcu
represents an EcuInstance
wich participates in network management.
Implementations§
Source§impl NmEcu
impl NmEcu
Sourcepub fn set_ecu_instance(
&self,
ecu_instance: &EcuInstance,
) -> Result<(), AutosarAbstractionError>
pub fn set_ecu_instance( &self, ecu_instance: &EcuInstance, ) -> Result<(), AutosarAbstractionError>
set the referenced EcuInstance
Sourcepub fn ecu_instance(&self) -> Option<EcuInstance>
pub fn ecu_instance(&self) -> Option<EcuInstance>
get the referenced EcuInstance
Sourcepub fn set_nm_bus_synchronization_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_bus_synchronization_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set the nmBusSynchronizationEnabled flag
This flag is optional; if it is set to Some()
the value is created, if it is set to None the value is removed.
Sourcepub fn nm_bus_synchronization_enabled(&self) -> Option<bool>
pub fn nm_bus_synchronization_enabled(&self) -> Option<bool>
get the nmBusSynchronizationEnabled flag
Sourcepub fn set_nm_com_control_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_com_control_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set the nmComControlEnabled flag
This flag is optional; if it is set to Some()
the value is created, if it is set to None the value is removed.
Sourcepub fn nm_com_control_enabled(&self) -> Option<bool>
pub fn nm_com_control_enabled(&self) -> Option<bool>
get the nmComControlEnabled flag
Sourcepub fn set_cycle_time_main_function(
&self,
value: Option<f64>,
) -> Result<(), AutosarAbstractionError>
pub fn set_cycle_time_main_function( &self, value: Option<f64>, ) -> Result<(), AutosarAbstractionError>
set or remove the nmCycletimeMainFunction value
This value is optional; if it is set to Some(x) the value is created, if it is set to None the value is removed.
Sourcepub fn cycle_time_main_function(&self) -> Option<f64>
pub fn cycle_time_main_function(&self) -> Option<f64>
get the nmCycletimeMainFunction value
Trait Implementations§
Source§impl AbstractionElement for NmEcu
impl AbstractionElement for NmEcu
impl Eq for NmEcu
impl StructuralPartialEq for NmEcu
Auto Trait Implementations§
impl Freeze for NmEcu
impl !RefUnwindSafe for NmEcu
impl Send for NmEcu
impl Sync for NmEcu
impl Unpin for NmEcu
impl !UnwindSafe for NmEcu
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.