Struct sbp::messages::piksi::msg_network_state_resp::MsgNetworkStateResp
source · pub struct MsgNetworkStateResp {
pub sender_id: Option<u16>,
pub ipv4_address: [u8; 4],
pub ipv4_mask_size: u8,
pub ipv6_address: [u8; 16],
pub ipv6_mask_size: u8,
pub rx_bytes: u32,
pub tx_bytes: u32,
pub interface_name: SbpString<[u8; 16], Unterminated>,
pub flags: u32,
}
Expand description
State of network interface
The state of a network interface on the Piksi. Data is made to reflect output of ifaddrs struct returned by getifaddrs in c.
Fields§
§sender_id: Option<u16>
The message sender_id
ipv4_address: [u8; 4]
IPv4 address (all zero when unavailable)
ipv4_mask_size: u8
IPv4 netmask CIDR notation
ipv6_address: [u8; 16]
IPv6 address (all zero when unavailable)
ipv6_mask_size: u8
IPv6 netmask CIDR notation
rx_bytes: u32
Number of Rx bytes
tx_bytes: u32
Number of Tx bytes
interface_name: SbpString<[u8; 16], Unterminated>
Interface Name
flags: u32
Interface flags from SIOCGIFFLAGS
Implementations§
source§impl MsgNetworkStateResp
impl MsgNetworkStateResp
sourcepub fn iff_multicast_supports_multicast(&self) -> bool
pub fn iff_multicast_supports_multicast(&self) -> bool
Gets the iff_multicast_supports_multicast
flag.
sourcepub fn set_iff_multicast_supports_multicast(
&mut self,
iff_multicast_supports_multicast: bool
)
pub fn set_iff_multicast_supports_multicast( &mut self, iff_multicast_supports_multicast: bool )
Sets the iff_multicast_supports_multicast
flag.
sourcepub fn iff_link2_per_link_layer_defined_bit(&self) -> bool
pub fn iff_link2_per_link_layer_defined_bit(&self) -> bool
Gets the iff_link2_per_link_layer_defined_bit
flag.
sourcepub fn set_iff_link2_per_link_layer_defined_bit(
&mut self,
iff_link2_per_link_layer_defined_bit: bool
)
pub fn set_iff_link2_per_link_layer_defined_bit( &mut self, iff_link2_per_link_layer_defined_bit: bool )
Sets the iff_link2_per_link_layer_defined_bit
flag.
sourcepub fn iff_link1_per_link_layer_defined_bit(&self) -> bool
pub fn iff_link1_per_link_layer_defined_bit(&self) -> bool
Gets the iff_link1_per_link_layer_defined_bit
flag.
sourcepub fn set_iff_link1_per_link_layer_defined_bit(
&mut self,
iff_link1_per_link_layer_defined_bit: bool
)
pub fn set_iff_link1_per_link_layer_defined_bit( &mut self, iff_link1_per_link_layer_defined_bit: bool )
Sets the iff_link1_per_link_layer_defined_bit
flag.
sourcepub fn iff_link0_per_link_layer_defined_bit(&self) -> bool
pub fn iff_link0_per_link_layer_defined_bit(&self) -> bool
Gets the iff_link0_per_link_layer_defined_bit
flag.
sourcepub fn set_iff_link0_per_link_layer_defined_bit(
&mut self,
iff_link0_per_link_layer_defined_bit: bool
)
pub fn set_iff_link0_per_link_layer_defined_bit( &mut self, iff_link0_per_link_layer_defined_bit: bool )
Sets the iff_link0_per_link_layer_defined_bit
flag.
sourcepub fn iff_simplex_cant_hear_own_transmissions(&self) -> bool
pub fn iff_simplex_cant_hear_own_transmissions(&self) -> bool
Gets the iff_simplex_cant_hear_own_transmissions
flag.
sourcepub fn set_iff_simplex_cant_hear_own_transmissions(
&mut self,
iff_simplex_cant_hear_own_transmissions: bool
)
pub fn set_iff_simplex_cant_hear_own_transmissions( &mut self, iff_simplex_cant_hear_own_transmissions: bool )
Sets the iff_simplex_cant_hear_own_transmissions
flag.
sourcepub fn iff_oactive_transmission_in_progress(&self) -> bool
pub fn iff_oactive_transmission_in_progress(&self) -> bool
Gets the iff_oactive_transmission_in_progress
flag.
sourcepub fn set_iff_oactive_transmission_in_progress(
&mut self,
iff_oactive_transmission_in_progress: bool
)
pub fn set_iff_oactive_transmission_in_progress( &mut self, iff_oactive_transmission_in_progress: bool )
Sets the iff_oactive_transmission_in_progress
flag.
sourcepub fn iff_allmulti_receive_all_multicast_packets(&self) -> bool
pub fn iff_allmulti_receive_all_multicast_packets(&self) -> bool
Gets the iff_allmulti_receive_all_multicast_packets
flag.
sourcepub fn set_iff_allmulti_receive_all_multicast_packets(
&mut self,
iff_allmulti_receive_all_multicast_packets: bool
)
pub fn set_iff_allmulti_receive_all_multicast_packets( &mut self, iff_allmulti_receive_all_multicast_packets: bool )
Sets the iff_allmulti_receive_all_multicast_packets
flag.
sourcepub fn iff_promisc_receive_all_packets(&self) -> bool
pub fn iff_promisc_receive_all_packets(&self) -> bool
Gets the iff_promisc_receive_all_packets
flag.
sourcepub fn set_iff_promisc_receive_all_packets(
&mut self,
iff_promisc_receive_all_packets: bool
)
pub fn set_iff_promisc_receive_all_packets( &mut self, iff_promisc_receive_all_packets: bool )
Sets the iff_promisc_receive_all_packets
flag.
sourcepub fn iff_noarp_no_address_resolution_protocol(&self) -> bool
pub fn iff_noarp_no_address_resolution_protocol(&self) -> bool
Gets the iff_noarp_no_address_resolution_protocol
flag.
sourcepub fn set_iff_noarp_no_address_resolution_protocol(
&mut self,
iff_noarp_no_address_resolution_protocol: bool
)
pub fn set_iff_noarp_no_address_resolution_protocol( &mut self, iff_noarp_no_address_resolution_protocol: bool )
Sets the iff_noarp_no_address_resolution_protocol
flag.
sourcepub fn iff_running_resources_allocated(&self) -> bool
pub fn iff_running_resources_allocated(&self) -> bool
Gets the iff_running_resources_allocated
flag.
sourcepub fn set_iff_running_resources_allocated(
&mut self,
iff_running_resources_allocated: bool
)
pub fn set_iff_running_resources_allocated( &mut self, iff_running_resources_allocated: bool )
Sets the iff_running_resources_allocated
flag.
sourcepub fn iff_notrailers_avoid_use_of_trailers(&self) -> bool
pub fn iff_notrailers_avoid_use_of_trailers(&self) -> bool
Gets the iff_notrailers_avoid_use_of_trailers
flag.
sourcepub fn set_iff_notrailers_avoid_use_of_trailers(
&mut self,
iff_notrailers_avoid_use_of_trailers: bool
)
pub fn set_iff_notrailers_avoid_use_of_trailers( &mut self, iff_notrailers_avoid_use_of_trailers: bool )
Sets the iff_notrailers_avoid_use_of_trailers
flag.
sourcepub fn iff_pointopoint_interface_is_pointtopoint_link(&self) -> bool
pub fn iff_pointopoint_interface_is_pointtopoint_link(&self) -> bool
Gets the iff_pointopoint_interface_is_pointtopoint_link
flag.
sourcepub fn set_iff_pointopoint_interface_is_pointtopoint_link(
&mut self,
iff_pointopoint_interface_is_pointtopoint_link: bool
)
pub fn set_iff_pointopoint_interface_is_pointtopoint_link( &mut self, iff_pointopoint_interface_is_pointtopoint_link: bool )
Sets the iff_pointopoint_interface_is_pointtopoint_link
flag.
sourcepub fn iff_loopback_is_a_loopback_net(&self) -> bool
pub fn iff_loopback_is_a_loopback_net(&self) -> bool
Gets the iff_loopback_is_a_loopback_net
flag.
sourcepub fn set_iff_loopback_is_a_loopback_net(
&mut self,
iff_loopback_is_a_loopback_net: bool
)
pub fn set_iff_loopback_is_a_loopback_net( &mut self, iff_loopback_is_a_loopback_net: bool )
Sets the iff_loopback_is_a_loopback_net
flag.
sourcepub fn iff_debug_broadcast_address_valid(&self) -> bool
pub fn iff_debug_broadcast_address_valid(&self) -> bool
Gets the iff_debug_broadcast_address_valid
flag.
sourcepub fn set_iff_debug_broadcast_address_valid(
&mut self,
iff_debug_broadcast_address_valid: bool
)
pub fn set_iff_debug_broadcast_address_valid( &mut self, iff_debug_broadcast_address_valid: bool )
Sets the iff_debug_broadcast_address_valid
flag.
sourcepub fn iff_broadcast_broadcast_address_valid(&self) -> bool
pub fn iff_broadcast_broadcast_address_valid(&self) -> bool
Gets the iff_broadcast_broadcast_address_valid
flag.
sourcepub fn set_iff_broadcast_broadcast_address_valid(
&mut self,
iff_broadcast_broadcast_address_valid: bool
)
pub fn set_iff_broadcast_broadcast_address_valid( &mut self, iff_broadcast_broadcast_address_valid: bool )
Sets the iff_broadcast_broadcast_address_valid
flag.
sourcepub fn iff_up_interface_is_up(&self) -> bool
pub fn iff_up_interface_is_up(&self) -> bool
Gets the iff_up_interface_is_up
flag.
sourcepub fn set_iff_up_interface_is_up(&mut self, iff_up_interface_is_up: bool)
pub fn set_iff_up_interface_is_up(&mut self, iff_up_interface_is_up: bool)
Sets the iff_up_interface_is_up
flag.
Trait Implementations§
source§impl Clone for MsgNetworkStateResp
impl Clone for MsgNetworkStateResp
source§fn clone(&self) -> MsgNetworkStateResp
fn clone(&self) -> MsgNetworkStateResp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ConcreteMessage for MsgNetworkStateResp
impl ConcreteMessage for MsgNetworkStateResp
source§const MESSAGE_TYPE: u16 = 187u16
const MESSAGE_TYPE: u16 = 187u16
source§const MESSAGE_NAME: &'static str = "MSG_NETWORK_STATE_RESP"
const MESSAGE_NAME: &'static str = "MSG_NETWORK_STATE_RESP"
source§impl Debug for MsgNetworkStateResp
impl Debug for MsgNetworkStateResp
source§impl<'de> Deserialize<'de> for MsgNetworkStateResp
impl<'de> Deserialize<'de> for MsgNetworkStateResp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl FriendlyName for MsgNetworkStateResp
impl FriendlyName for MsgNetworkStateResp
fn friendly_name() -> &'static str
source§impl From<MsgNetworkStateResp> for Sbp
impl From<MsgNetworkStateResp> for Sbp
source§fn from(msg: MsgNetworkStateResp) -> Self
fn from(msg: MsgNetworkStateResp) -> Self
source§impl PartialEq for MsgNetworkStateResp
impl PartialEq for MsgNetworkStateResp
source§fn eq(&self, other: &MsgNetworkStateResp) -> bool
fn eq(&self, other: &MsgNetworkStateResp) -> bool
self
and other
values to be equal, and is used
by ==
.