Struct fidl_fuchsia_virtualaudio::ControlProxy
source · pub struct ControlProxy { /* private fields */ }
Implementations§
source§impl ControlProxy
impl ControlProxy
sourcepub fn take_event_stream(&self) -> ControlEventStream
pub fn take_event_stream(&self) -> ControlEventStream
Get a Stream of events from the remote end of the Control protocol
Panics
Panics if the event stream was already taken.
sourcepub fn add_input(
&self,
config: Configuration,
server: ServerEnd<DeviceMarker>
) -> QueryResponseFut<ControlAddInputResult>
pub fn add_input( &self, config: Configuration, server: ServerEnd<DeviceMarker> ) -> QueryResponseFut<ControlAddInputResult>
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>
) -> QueryResponseFut<ControlAddOutputResult>
pub fn add_output( &self, config: Configuration, server: ServerEnd<DeviceMarker> ) -> QueryResponseFut<ControlAddOutputResult>
Adds an output device to the device tree.
The device lives until the Device
FIDL channel is closed.
sourcepub fn get_num_devices(&self) -> QueryResponseFut<(u32, u32)>
pub fn get_num_devices(&self) -> QueryResponseFut<(u32, u32)>
Returns the number of active input and output virtual devices.
sourcepub fn remove_all(&self) -> QueryResponseFut<()>
pub fn remove_all(&self) -> QueryResponseFut<()>
Synchronously remove all all active input and output devices.
Trait Implementations§
source§impl Clone for ControlProxy
impl Clone for ControlProxy
source§fn clone(&self) -> ControlProxy
fn clone(&self) -> ControlProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ControlProxyInterface for ControlProxy
impl ControlProxyInterface for ControlProxy
type AddInputResponseFut = QueryResponseFut<Result<(), Error>>
fn add_input( &self, config: Configuration, server: ServerEnd<DeviceMarker> ) -> Self::AddInputResponseFut
type AddOutputResponseFut = QueryResponseFut<Result<(), Error>>
fn add_output( &self, config: Configuration, server: ServerEnd<DeviceMarker> ) -> Self::AddOutputResponseFut
type GetNumDevicesResponseFut = QueryResponseFut<(u32, u32)>
fn get_num_devices(&self) -> Self::GetNumDevicesResponseFut
type RemoveAllResponseFut = QueryResponseFut<()>
fn remove_all(&self) -> Self::RemoveAllResponseFut
source§impl Debug for ControlProxy
impl Debug for ControlProxy
source§impl Proxy for ControlProxy
impl Proxy for ControlProxy
§type Protocol = ControlMarker
type Protocol = ControlMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more