pub struct EffectsControllerProxy { /* private fields */ }
Implementations§
Source§impl EffectsControllerProxy
impl EffectsControllerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.media.audio/EffectsController.
Sourcepub fn take_event_stream(&self) -> EffectsControllerEventStream
pub fn take_event_stream(&self) -> EffectsControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn update_effect(
&self,
effect_name: &str,
config: &str,
) -> QueryResponseFut<EffectsControllerUpdateEffectResult, DefaultFuchsiaResourceDialect>
pub fn update_effect( &self, effect_name: &str, config: &str, ) -> QueryResponseFut<EffectsControllerUpdateEffectResult, DefaultFuchsiaResourceDialect>
Sends the config
message to an audio effect named effect_name
. If the
server closes the EffectsController
connection for any reason, that
indicates that the effects have been reset and any state associated with
previous UpdateEffect
messages have been lost. Clients who wish to re-apply
state should respond by reconnecting and resending any needed UpdateEffect
messages. If a client closes the connection, no state will be lost but the
client will also be unable to determine if and when any state associated with
previous messages have been lost.
Returns success (empty response) if the message was accepted by an
effect named effect_name
.
Returns UpdateEffectError.INVALID_CONFIG
if an effect with the name
effect_name
was found, but the config
message was rejected.
Returns UpdateEffectError.NOT_FOUND
if no effect with name effect_name
could be located.
Trait Implementations§
Source§impl Clone for EffectsControllerProxy
impl Clone for EffectsControllerProxy
Source§fn clone(&self) -> EffectsControllerProxy
fn clone(&self) -> EffectsControllerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EffectsControllerProxy
impl Debug for EffectsControllerProxy
Source§impl EffectsControllerProxyInterface for EffectsControllerProxy
impl EffectsControllerProxyInterface for EffectsControllerProxy
type UpdateEffectResponseFut = QueryResponseFut<Result<(), UpdateEffectError>>
fn update_effect( &self, effect_name: &str, config: &str, ) -> Self::UpdateEffectResponseFut
Source§impl Proxy for EffectsControllerProxy
impl Proxy for EffectsControllerProxy
Source§type Protocol = EffectsControllerMarker
type Protocol = EffectsControllerMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for EffectsControllerProxy
impl !RefUnwindSafe for EffectsControllerProxy
impl Send for EffectsControllerProxy
impl Sync for EffectsControllerProxy
impl Unpin for EffectsControllerProxy
impl !UnwindSafe for EffectsControllerProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)