pub struct GainControlProxy { /* private fields */ }
Implementations§
Source§impl GainControlProxy
impl GainControlProxy
Sourcepub fn take_event_stream(&self) -> GainControlEventStream
pub fn take_event_stream(&self) -> GainControlEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn set_gain(
&self,
payload: &GainControlSetGainRequest,
) -> QueryResponseFut<GainControlSetGainResult, DefaultFuchsiaResourceDialect>
pub fn set_gain( &self, payload: &GainControlSetGainRequest, ) -> QueryResponseFut<GainControlSetGainResult, DefaultFuchsiaResourceDialect>
Sets the gain knob.
Sourcepub fn set_mute(
&self,
payload: &GainControlSetMuteRequest,
) -> QueryResponseFut<GainControlSetMuteResult, DefaultFuchsiaResourceDialect>
pub fn set_mute( &self, payload: &GainControlSetMuteRequest, ) -> QueryResponseFut<GainControlSetMuteResult, DefaultFuchsiaResourceDialect>
Set the mute knob.
Trait Implementations§
Source§impl Clone for GainControlProxy
impl Clone for GainControlProxy
Source§fn clone(&self) -> GainControlProxy
fn clone(&self) -> GainControlProxy
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 Debug for GainControlProxy
impl Debug for GainControlProxy
Source§impl GainControlProxyInterface for GainControlProxy
impl GainControlProxyInterface for GainControlProxy
type SetGainResponseFut = QueryResponseFut<Result<GainControlSetGainResponse, GainError>>
type SetMuteResponseFut = QueryResponseFut<Result<GainControlSetMuteResponse, GainError>>
fn set_gain( &self, payload: &GainControlSetGainRequest, ) -> Self::SetGainResponseFut
fn set_mute( &self, payload: &GainControlSetMuteRequest, ) -> Self::SetMuteResponseFut
Source§impl Proxy for GainControlProxy
impl Proxy for GainControlProxy
Source§type Protocol = GainControlMarker
type Protocol = GainControlMarker
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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for GainControlProxy
impl !RefUnwindSafe for GainControlProxy
impl Send for GainControlProxy
impl Sync for GainControlProxy
impl Unpin for GainControlProxy
impl !UnwindSafe for GainControlProxy
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