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
sourceimpl 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
sourceimpl Clone for MsgNetworkStateResp
impl Clone for MsgNetworkStateResp
sourcefn clone(&self) -> MsgNetworkStateResp
fn clone(&self) -> MsgNetworkStateResp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConcreteMessage for MsgNetworkStateResp
impl ConcreteMessage for MsgNetworkStateResp
sourceconst MESSAGE_TYPE: u16 = 187u16
const MESSAGE_TYPE: u16 = 187u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_NETWORK_STATE_RESP"
const MESSAGE_NAME: &'static str = "MSG_NETWORK_STATE_RESP"
The message name.
sourceimpl Debug for MsgNetworkStateResp
impl Debug for MsgNetworkStateResp
sourceimpl From<MsgNetworkStateResp> for Sbp
impl From<MsgNetworkStateResp> for Sbp
sourcefn from(msg: MsgNetworkStateResp) -> Self
fn from(msg: MsgNetworkStateResp) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgNetworkStateResp
impl SbpMessage for MsgNetworkStateResp
sourcefn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
sourcefn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type.
sourcefn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgNetworkStateResp
impl Send for MsgNetworkStateResp
impl Sync for MsgNetworkStateResp
impl Unpin for MsgNetworkStateResp
impl UnwindSafe for MsgNetworkStateResp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more