pub struct UdpNmCluster(/* private fields */);
Expand description
Udp / Ethernet specific NmCluster
Implementations§
Source§impl UdpNmCluster
impl UdpNmCluster
Sourcepub fn set_nm_msg_cycle_time(
&self,
cycle_time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_msg_cycle_time( &self, cycle_time: f64, ) -> Result<(), AutosarAbstractionError>
set the nmMsgCycleTime
Sourcepub fn nm_msg_cycle_time(&self) -> Option<f64>
pub fn nm_msg_cycle_time(&self) -> Option<f64>
get the nmMsgCycleTime
Sourcepub fn set_nm_message_timeout_time(
&self,
timeout_time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_message_timeout_time( &self, timeout_time: f64, ) -> Result<(), AutosarAbstractionError>
set the nmMessageTimeoutTime
Sourcepub fn nm_message_timeout_time(&self) -> Option<f64>
pub fn nm_message_timeout_time(&self) -> Option<f64>
get the nmMessageTimeoutTime
Sourcepub fn set_nm_network_timeout(
&self,
timeout: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_network_timeout( &self, timeout: f64, ) -> Result<(), AutosarAbstractionError>
set the NmNetworkTimeout
Sourcepub fn nm_network_timeout(&self) -> Option<f64>
pub fn nm_network_timeout(&self) -> Option<f64>
get the NmNetworkTimeout
Sourcepub fn set_nm_remote_sleep_indication_time(
&self,
time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_remote_sleep_indication_time( &self, time: f64, ) -> Result<(), AutosarAbstractionError>
set the NmRemoteSleepIndicationTime
Sourcepub fn nm_remote_sleep_indication_time(&self) -> Option<f64>
pub fn nm_remote_sleep_indication_time(&self) -> Option<f64>
get the NmRemoteSleepIndicationTime
Sourcepub fn set_nm_repeat_message_time(
&self,
time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_repeat_message_time( &self, time: f64, ) -> Result<(), AutosarAbstractionError>
set the NmRepeatMessageTime
Sourcepub fn nm_repeat_message_time(&self) -> Option<f64>
pub fn nm_repeat_message_time(&self) -> Option<f64>
get the NmRepeatMessageTime
Sourcepub fn set_nm_wait_bus_sleep_time(
&self,
time: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_wait_bus_sleep_time( &self, time: f64, ) -> Result<(), AutosarAbstractionError>
set the NmWaitBusSleepTime
Sourcepub fn nm_wait_bus_sleep_time(&self) -> Option<f64>
pub fn nm_wait_bus_sleep_time(&self) -> Option<f64>
get the NmWaitBusSleepTime
Sourcepub fn create_udp_nm_node(
&self,
name: &str,
controller: &EthernetCommunicationController,
nm_ecu: &NmEcu,
nm_msg_cycle_offset: f64,
) -> Result<UdpNmNode, AutosarAbstractionError>
pub fn create_udp_nm_node( &self, name: &str, controller: &EthernetCommunicationController, nm_ecu: &NmEcu, nm_msg_cycle_offset: f64, ) -> Result<UdpNmNode, AutosarAbstractionError>
add a UdpNmNode
to the cluster
Sourcepub fn set_vlan(
&self,
vlan: Option<&EthernetPhysicalChannel>,
) -> Result<(), AutosarAbstractionError>
pub fn set_vlan( &self, vlan: Option<&EthernetPhysicalChannel>, ) -> Result<(), AutosarAbstractionError>
set or delete the Vlan associated with the cluster through an EthernetPhysicalChannel
reference
If vlan
is Some
, the Vlan is set to the value of vlan
. If vlan
is None
, the Vlan is removed.
Sourcepub fn vlan(&self) -> Option<EthernetPhysicalChannel>
pub fn vlan(&self) -> Option<EthernetPhysicalChannel>
get the Vlan associated with the cluster
Sourcepub fn set_nm_immediate_nm_transmissions(
&self,
value: Option<u32>,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_immediate_nm_transmissions( &self, value: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or delete the value nmImmediateNmTransmissions
Sourcepub fn nm_immediate_nm_transmissions(&self) -> Option<u32>
pub fn nm_immediate_nm_transmissions(&self) -> Option<u32>
get the value of nmImmediateNmTransmissions
Sourcepub fn set_nm_cbv_position(
&self,
value: Option<u32>,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_cbv_position( &self, value: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or delete the value nmCbvPosition
Sourcepub fn nm_cbv_position(&self) -> Option<u32>
pub fn nm_cbv_position(&self) -> Option<u32>
get the value of nmCbvPosition
Sourcepub fn set_nm_nid_position(
&self,
value: Option<u32>,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_nid_position( &self, value: Option<u32>, ) -> Result<(), AutosarAbstractionError>
set or delete the value nmNidPosition
Sourcepub fn nm_nid_position(&self) -> Option<u32>
pub fn nm_nid_position(&self) -> Option<u32>
get the value of nmNidPosition
Trait Implementations§
Source§impl AbstractNmCluster for UdpNmCluster
impl AbstractNmCluster for UdpNmCluster
Source§type CommunicationClusterType = EthernetCluster
type CommunicationClusterType = EthernetCluster
Source§type NmNodeType = UdpNmNode
type NmNodeType = UdpNmNode
CanNmNode
for a CanNmCluster
Source§fn set_communication_cluster(
&self,
cluster: &Self::CommunicationClusterType,
) -> Result<(), AutosarAbstractionError>
fn set_communication_cluster( &self, cluster: &Self::CommunicationClusterType, ) -> Result<(), AutosarAbstractionError>
CommunicationCluster
Source§fn communication_cluster(&self) -> Option<Self::CommunicationClusterType>
fn communication_cluster(&self) -> Option<Self::CommunicationClusterType>
CommunicationCluster
Source§fn nm_nodes(&self) -> impl Iterator<Item = Self::NmNodeType> + Send + 'static
fn nm_nodes(&self) -> impl Iterator<Item = Self::NmNodeType> + Send + 'static
NmNodes
in this clusterSource§fn set_channel_sleep_master(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_channel_sleep_master( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn channel_sleep_master(&self) -> Option<bool>
fn channel_sleep_master(&self) -> Option<bool>
Source§fn set_node_detection_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_node_detection_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn node_detection_enabled(&self) -> Option<bool>
fn node_detection_enabled(&self) -> Option<bool>
Source§fn set_node_id_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_node_id_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn node_id_enabled(&self) -> Option<bool>
fn node_id_enabled(&self) -> Option<bool>
Source§fn set_pnc_participation(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_pnc_participation( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn pnc_participation(&self) -> Option<bool>
fn pnc_participation(&self) -> Option<bool>
Source§fn set_repeat_msg_ind_enabled(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_repeat_msg_ind_enabled( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn repeat_msg_ind_enabled(&self) -> Option<bool>
fn repeat_msg_ind_enabled(&self) -> Option<bool>
Source§fn set_synchronizing_network(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_synchronizing_network( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn synchronizing_network(&self) -> Option<bool>
fn synchronizing_network(&self) -> Option<bool>
Source§fn set_pnc_cluster_vector_length(
&self,
value: Option<u8>,
) -> Result<(), AutosarAbstractionError>
fn set_pnc_cluster_vector_length( &self, value: Option<u8>, ) -> Result<(), AutosarAbstractionError>
Source§fn pnc_cluster_vector_length(&self) -> Option<u8>
fn pnc_cluster_vector_length(&self) -> Option<u8>
Source§impl AbstractionElement for UdpNmCluster
impl AbstractionElement for UdpNmCluster
Source§impl Clone for UdpNmCluster
impl Clone for UdpNmCluster
Source§fn clone(&self) -> UdpNmCluster
fn clone(&self) -> UdpNmCluster
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UdpNmCluster
impl Debug for UdpNmCluster
Source§impl From<UdpNmCluster> for Element
impl From<UdpNmCluster> for Element
Source§fn from(val: UdpNmCluster) -> Self
fn from(val: UdpNmCluster) -> Self
Source§impl Hash for UdpNmCluster
impl Hash for UdpNmCluster
Source§impl PartialEq for UdpNmCluster
impl PartialEq for UdpNmCluster
Source§impl TryFrom<Element> for UdpNmCluster
impl TryFrom<Element> for UdpNmCluster
impl Eq for UdpNmCluster
impl StructuralPartialEq for UdpNmCluster
Auto Trait Implementations§
impl Freeze for UdpNmCluster
impl !RefUnwindSafe for UdpNmCluster
impl Send for UdpNmCluster
impl Sync for UdpNmCluster
impl Unpin for UdpNmCluster
impl !UnwindSafe for UdpNmCluster
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
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
key
and return true
if they are equal.