pub enum AudioOffloadControllerRequest {
Stop {
responder: AudioOffloadControllerStopResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: AudioOffloadControllerControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol representing the controller actively encoding offloaded audio to or from this channel. Closing the protocol will stop the encoding, which can also be done using the Stop() if synchronization is required. If the controller fails to start audio offloading, an epitaph will be sent when this is closed.
This channel will be closed with a ZX_ERR_NOT_SUPPORTED
epitaph if the audio offload
configuration for the controller is not supported.
This channel will be closed with a ZX_ERR_UNAVAILABLE
epitaph if the controller sends an
error.
This channel will be closed with a ZX_ERR_ALREADY_BOUND
epitaph if audio offloading starting
or stopping is already in progress/complete on another channel.
This channel will be closed with a ZX_ERR_INTERNAL
epitaph if commands are issued when audio
offloading is not started.
Variants§
Stop
Request the audio offloading be stopped. This call will be responded to before the protocol is closed on the server side.
Fields
responder: AudioOffloadControllerStopResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: AudioOffloadControllerControlHandle
method_type: MethodType
Implementations§
Source§impl AudioOffloadControllerRequest
impl AudioOffloadControllerRequest
pub fn into_stop(self) -> Option<AudioOffloadControllerStopResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL