pub enum VirtioSoundRequest {
ConfigureQueue {
queue: u16,
size: u16,
desc: u64,
avail: u64,
used: u64,
responder: VirtioSoundConfigureQueueResponder,
},
NotifyQueue {
queue: u16,
control_handle: VirtioSoundControlHandle,
},
Ready {
negotiated_features: u32,
responder: VirtioSoundReadyResponder,
},
Start {
start_info: StartInfo,
enable_input: bool,
enable_verbose_logging: bool,
responder: VirtioSoundStartResponder,
},
}
Variants§
ConfigureQueue
Configure a queue
for the device. This specifies the size
and the
guest physical addresses of the queue: desc
, avail
, and used
.
Fields
§
responder: VirtioSoundConfigureQueueResponder
NotifyQueue
Notify a queue
for the device. Primarily used for black-box testing.
Ready
Ready a device. This provides the set of negotiated_features
that the
driver and device have agreed upon.
Start
Start the sound device. The response contains the device’s expected static configuration.
- request
start_info
basic info to start the device - request
enable_input
whether audio input (capture) should be enabled - request
enable_verbose_logging
whether verbose logging should be enabled
- response
features
supported features - response
jacks
the virtio_snd_config.jacks value to advertise - response
streams
the virtio_snd_config.streams value to advertise - response
chmaps
the virtio_snd_config.chaps value to advertise
Implementations§
Source§impl VirtioSoundRequest
impl VirtioSoundRequest
pub fn into_configure_queue( self, ) -> Option<(u16, u16, u64, u64, u64, VirtioSoundConfigureQueueResponder)>
pub fn into_notify_queue(self) -> Option<(u16, VirtioSoundControlHandle)>
pub fn into_ready(self) -> Option<(u32, VirtioSoundReadyResponder)>
pub fn into_start( self, ) -> Option<(StartInfo, bool, bool, VirtioSoundStartResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VirtioSoundRequest
impl !RefUnwindSafe for VirtioSoundRequest
impl Send for VirtioSoundRequest
impl Sync for VirtioSoundRequest
impl Unpin for VirtioSoundRequest
impl !UnwindSafe for VirtioSoundRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more