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: Time) -> Result<ControlEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> 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 add_input(
&self,
config: Configuration,
server: ServerEnd<DeviceMarker>,
___deadline: Time
) -> Result<ControlAddInputResult, Error>
pub fn add_input( &self, config: Configuration, server: ServerEnd<DeviceMarker>, ___deadline: Time ) -> Result<ControlAddInputResult, Error>
Adds an input device to the device tree.
The device lives until the Device
FIDL channel is closed.
sourcepub fn add_output(
&self,
config: Configuration,
server: ServerEnd<DeviceMarker>,
___deadline: Time
) -> Result<ControlAddOutputResult, Error>
pub fn add_output( &self, config: Configuration, server: ServerEnd<DeviceMarker>, ___deadline: Time ) -> Result<ControlAddOutputResult, Error>
Adds an output device to the device tree.
The device lives until the Device
FIDL channel is closed.
sourcepub fn get_num_devices(&self, ___deadline: Time) -> Result<(u32, u32), Error>
pub fn get_num_devices(&self, ___deadline: Time) -> Result<(u32, u32), Error>
Returns the number of active input and output virtual devices.
sourcepub fn remove_all(&self, ___deadline: Time) -> Result<(), Error>
pub fn remove_all(&self, ___deadline: Time) -> Result<(), Error>
Synchronously remove all all active input and output devices.