pub struct EffectsControllerSynchronousProxy { /* private fields */ }Implementations§
Source§impl EffectsControllerSynchronousProxy
impl EffectsControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<EffectsControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<EffectsControllerEvent, 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 update_effect(
&self,
effect_name: &str,
config: &str,
___deadline: MonotonicInstant,
) -> Result<EffectsControllerUpdateEffectResult, Error>
pub fn update_effect( &self, effect_name: &str, config: &str, ___deadline: MonotonicInstant, ) -> Result<EffectsControllerUpdateEffectResult, Error>
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 From<Channel> for EffectsControllerSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for EffectsControllerSynchronousProxy
Source§impl From<EffectsControllerSynchronousProxy> for Handle
Available on Fuchsia only.
impl From<EffectsControllerSynchronousProxy> for Handle
Source§fn from(value: EffectsControllerSynchronousProxy) -> Self
fn from(value: EffectsControllerSynchronousProxy) -> Self
Source§impl FromClient for EffectsControllerSynchronousProxy
Available on Fuchsia only.
impl FromClient for EffectsControllerSynchronousProxy
Source§type Protocol = EffectsControllerMarker
type Protocol = EffectsControllerMarker
Source§fn from_client(value: ClientEnd<EffectsControllerMarker>) -> Self
fn from_client(value: ClientEnd<EffectsControllerMarker>) -> Self
Source§impl SynchronousProxy for EffectsControllerSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for EffectsControllerSynchronousProxy
Source§type Proxy = EffectsControllerProxy
type Proxy = EffectsControllerProxy
Source§type Protocol = EffectsControllerMarker
type Protocol = EffectsControllerMarker
Proxy controls.