pub enum ControlRequest {
UpdateInterfaceDefaults {
payload: Configuration,
responder: ControlUpdateInterfaceDefaultsResponder,
},
UpdateTcp {
payload: Tcp,
responder: ControlUpdateTcpResponder,
},
UpdateUdp {
payload: Udp,
responder: ControlUpdateUdpResponder,
},
UpdateIcmp {
payload: Icmp,
responder: ControlUpdateIcmpResponder,
},
UpdateIp {
payload: Ip,
responder: ControlUpdateIpResponder,
},
UpdateDevice {
payload: Device,
responder: ControlUpdateDeviceResponder,
},
}Expand description
Provides control over the network stack namespace-wide configuration.
Variants§
UpdateInterfaceDefaults
Updates the default configurations for interfaces.
New interfaces created take default values from this configuration.
Note that some interface types may not support specific configurations, in which case the value is either ignored or the network stack assigns a server-assigned value.
Only fields present in the provided Interface are set; unset fields
are left unmodified. The server returns a Interface which holds the
previous configuration for fields that were set in the request.
No values are changed if an error is returned.
- request configuration fields to update on the interface defaults.
- response a partial snapshot of the previous default configuration.
UpdateTcp
Updates TCP settings.
Only fields present in the provided Tcp are set; unset fields are
left unmodified. The server returns a Tcp which holds the previous
settings for fields that were set in the request.
No values are changed if an error is returned.
- request TCP settings fields to update.
- response a partial snapshot of the previous TCP settings.
UpdateUdp
Updates UDP settings.
Only fields present in the provided Udp are set; unset fields are
left unmodified. The server returns a Udp which holds the previous
settings for fields that were set in the request.
No values are changed if an error is returned.
- request UDP settings fields to update.
- response a partial snapshot of the previous UDP settings.
UpdateIcmp
Updates ICMP settings.
Only fields present in the provided Icmp are set; unset fields are
left unmodified. The server returns a Icmp which holds the previous
settings for fields that were set in the request.
No values are changed if an error is returned.
- request ICMP settings fields to update.
- response a partial snapshot of the previous ICMP settings.
UpdateIp
Updates IP settings.
Only fields present in the provided Ip are set; unset fields are
left unmodified. The server returns a Ip which holds the previous
settings for fields that were set in the request.
No values are changed if an error is returned.
- request IP settings fields to update.
- response a partial snapshot of the previous IP settings.
UpdateDevice
Updates device layer settings.
Only fields present in the provided Device are set; unset
fields are left unmodified. The server returns a Device which
holds the previous settings for fields that were set in the
request.
No values are changed if an error is returned.
- request device layer settings fields to update.
- response a partial snapshot of the previous device layer.
Implementations§
Source§impl ControlRequest
impl ControlRequest
pub fn into_update_interface_defaults( self, ) -> Option<(Configuration, ControlUpdateInterfaceDefaultsResponder)>
pub fn into_update_tcp(self) -> Option<(Tcp, ControlUpdateTcpResponder)>
pub fn into_update_udp(self) -> Option<(Udp, ControlUpdateUdpResponder)>
pub fn into_update_icmp(self) -> Option<(Icmp, ControlUpdateIcmpResponder)>
pub fn into_update_ip(self) -> Option<(Ip, ControlUpdateIpResponder)>
pub fn into_update_device( self, ) -> Option<(Device, ControlUpdateDeviceResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL