pub struct ControlSynchronousProxy { /* private fields */ }Implementations§
Source§impl ControlSynchronousProxy
impl ControlSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ControlEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ControlEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn update_interface_defaults(
&self,
payload: &Configuration,
___deadline: MonotonicInstant,
) -> Result<ControlUpdateInterfaceDefaultsResult, Error>
pub fn update_interface_defaults( &self, payload: &Configuration, ___deadline: MonotonicInstant, ) -> Result<ControlUpdateInterfaceDefaultsResult, Error>
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.
Sourcepub fn update_tcp(
&self,
payload: &Tcp,
___deadline: MonotonicInstant,
) -> Result<ControlUpdateTcpResult, Error>
pub fn update_tcp( &self, payload: &Tcp, ___deadline: MonotonicInstant, ) -> Result<ControlUpdateTcpResult, Error>
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.
Sourcepub fn update_udp(
&self,
payload: &Udp,
___deadline: MonotonicInstant,
) -> Result<ControlUpdateUdpResult, Error>
pub fn update_udp( &self, payload: &Udp, ___deadline: MonotonicInstant, ) -> Result<ControlUpdateUdpResult, Error>
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.
Sourcepub fn update_icmp(
&self,
payload: &Icmp,
___deadline: MonotonicInstant,
) -> Result<ControlUpdateIcmpResult, Error>
pub fn update_icmp( &self, payload: &Icmp, ___deadline: MonotonicInstant, ) -> Result<ControlUpdateIcmpResult, Error>
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.
Sourcepub fn update_ip(
&self,
payload: &Ip,
___deadline: MonotonicInstant,
) -> Result<ControlUpdateIpResult, Error>
pub fn update_ip( &self, payload: &Ip, ___deadline: MonotonicInstant, ) -> Result<ControlUpdateIpResult, Error>
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.
Sourcepub fn update_device(
&self,
payload: &Device,
___deadline: MonotonicInstant,
) -> Result<ControlUpdateDeviceResult, Error>
pub fn update_device( &self, payload: &Device, ___deadline: MonotonicInstant, ) -> Result<ControlUpdateDeviceResult, Error>
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.
Trait Implementations§
Source§impl Debug for ControlSynchronousProxy
impl Debug for ControlSynchronousProxy
Source§impl From<Channel> for ControlSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for ControlSynchronousProxy
Source§impl From<ControlSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<ControlSynchronousProxy> for NullableHandle
Source§fn from(value: ControlSynchronousProxy) -> Self
fn from(value: ControlSynchronousProxy) -> Self
Source§impl FromClient for ControlSynchronousProxy
Available on Fuchsia only.
impl FromClient for ControlSynchronousProxy
Source§type Protocol = ControlMarker
type Protocol = ControlMarker
Source§fn from_client(value: ClientEnd<ControlMarker>) -> Self
fn from_client(value: ClientEnd<ControlMarker>) -> Self
Source§impl SynchronousProxy for ControlSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for ControlSynchronousProxy
Source§type Proxy = ControlProxy
type Proxy = ControlProxy
Source§type Protocol = ControlMarker
type Protocol = ControlMarker
Proxy controls.