pub struct InterfaceOptions {
pub name: Option<String>,
pub device: Option<ClientEnd<PortMarker>>,
pub without_autogenerated_addresses: Option<bool>,
pub static_ips: Option<Vec<Subnet>>,
pub gateway: Option<IpAddress>,
pub enable_ipv4_forwarding: Option<bool>,
pub enable_ipv6_forwarding: Option<bool>,
pub ipv4_multicast_neighbor_solicitations: Option<u16>,
pub ipv6_multicast_neighbor_solicitations: Option<u16>,
/* private fields */
}
Fields§
§name: Option<String>
The name of the interface to be created.
Required.
device: Option<ClientEnd<PortMarker>>
The device port to be installed.
Required.
without_autogenerated_addresses: Option<bool>
Whether to disable automatic generation and assignment of link- local IPv6 addresses for the interface.
If not set, interpreted as false.
static_ips: Option<Vec<Subnet>>
Static IP addresses to be assigned to the interface. Corresponding local subnet routes will also be added to the netstack’s routing table.
If not set, interpreted as an empty vector.
gateway: Option<IpAddress>
The IP address of the default gateway.
If not set, no default route will be added to the netstack.
enable_ipv4_forwarding: Option<bool>
Whether to enable IPv4 forwarding on the interface.
If not set, interpreted as false.
enable_ipv6_forwarding: Option<bool>
Whether to enable IPv6 forwarding on the interface.
If not set, interpreted as false.
ipv4_multicast_neighbor_solicitations: Option<u16>
The maximum number of IPv4 multicast neighbor solicitations.
If not set, uses the system default.
ipv6_multicast_neighbor_solicitations: Option<u16>
The maximum number of IPv6 multicast neighbor solicitations.
If not set, uses the system default.
Trait Implementations§
Source§impl Debug for InterfaceOptions
impl Debug for InterfaceOptions
Source§impl Decode<InterfaceOptions, DefaultFuchsiaResourceDialect> for InterfaceOptions
impl Decode<InterfaceOptions, DefaultFuchsiaResourceDialect> for InterfaceOptions
Source§impl Default for InterfaceOptions
impl Default for InterfaceOptions
Source§fn default() -> InterfaceOptions
fn default() -> InterfaceOptions
Source§impl Encode<InterfaceOptions, DefaultFuchsiaResourceDialect> for &mut InterfaceOptions
impl Encode<InterfaceOptions, DefaultFuchsiaResourceDialect> for &mut InterfaceOptions
Source§impl PartialEq for InterfaceOptions
impl PartialEq for InterfaceOptions
Source§impl ResourceTypeMarker for InterfaceOptions
impl ResourceTypeMarker for InterfaceOptions
Source§type Borrowed<'a> = &'a mut InterfaceOptions
type Borrowed<'a> = &'a mut InterfaceOptions
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for InterfaceOptions
impl TypeMarker for InterfaceOptions
Source§type Owned = InterfaceOptions
type Owned = InterfaceOptions
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
.§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 more§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.