pub struct Network {
pub network_id: Option<u32>,
pub info: Option<NetworkInfo>,
pub dns_servers: Option<NetworkDnsServers>,
pub network_type: Option<NetworkType>,
pub capabilities: Option<Vec<NetworkCapability>>,
pub connectivity: Option<ConnectivityState>,
pub name: Option<String>,
pub has_address: Option<ProtoProperties>,
pub has_default_route: Option<ProtoProperties>,
/* private fields */
}Expand description
Network describes a single network interface provided to NetworkRegistry.
Fields§
§network_id: Option<u32>A unique ID for the registered network.
Required.
info: Option<NetworkInfo>Platform specific information about the network.
Required.
dns_servers: Option<NetworkDnsServers>REQUIRED. The DNS servers associated with this network.
network_type: Option<NetworkType>The transport type for the network.
Added in FuchsiaNetworkMonitorFs NetworkMessage version 2. Interpreted as NetworkType::UNKNOWN when absent.
capabilities: Option<Vec<NetworkCapability>>The capabilities for the network.
Added in FuchsiaNetworkMonitorFs NetworkMessage version 2. Interpreted as an empty list when absent.
connectivity: Option<ConnectivityState>The level of connectivity for the network.
Added in FuchsiaNetworkMonitorFs NetworkMessage version 2. Interpreted as ConnectivityState::NO_CONNECTIVITY when absent.
name: Option<String>The name of the underlying interface for the network.
Added in FuchsiaNetworkMonitorFs NetworkMessage version 2. Interpreted as the empty string when absent.
has_address: Option<ProtoProperties>Whether the underlying interface has a v4/v6 address assigned.
Added in FuchsiaNetworkMonitorFs NetworkMessage version 2. Interpreted as no information is available when absent.
has_default_route: Option<ProtoProperties>Whether the underlying interface has a v4/v6 default route.
Added in FuchsiaNetworkMonitorFs NetworkMessage version 2. Interpereted as no information is available when absent.
Trait Implementations§
Source§impl<D> Decode<Network, D> for Networkwhere
D: ResourceDialect,
impl<D> Decode<Network, D> for Networkwhere
D: ResourceDialect,
Source§impl TypeMarker for Network
impl TypeMarker for Network
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for Network
impl ValueTypeMarker for Network
Source§type Borrowed<'a> = &'a Network
type Borrowed<'a> = &'a Network
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<Network as TypeMarker>::Owned,
) -> <Network as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<Network as TypeMarker>::Owned, ) -> <Network as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.