pub struct AbsoluteVolumeHandlerProxy { /* private fields */ }
Implementations§
Source§impl AbsoluteVolumeHandlerProxy
impl AbsoluteVolumeHandlerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.avrcp/AbsoluteVolumeHandler.
Sourcepub fn take_event_stream(&self) -> AbsoluteVolumeHandlerEventStream
pub fn take_event_stream(&self) -> AbsoluteVolumeHandlerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn set_volume(
&self,
requested_volume: u8,
) -> QueryResponseFut<u8, DefaultFuchsiaResourceDialect>
pub fn set_volume( &self, requested_volume: u8, ) -> QueryResponseFut<u8, DefaultFuchsiaResourceDialect>
Requests that the absolute volume of the player be changed.
requested_volume
is the requested volume by the peer.
Returns the actual volume set locally by the handler.
Sourcepub fn on_volume_changed(
&self,
) -> QueryResponseFut<u8, DefaultFuchsiaResourceDialect>
pub fn on_volume_changed( &self, ) -> QueryResponseFut<u8, DefaultFuchsiaResourceDialect>
Returns latest volume of the handler to the AVRCP service. This function should return
immediately on the first call and if the volume has changed since the last call to this
function, otherwise it should only return when the volume has been changed.
Multiple outstanding OnVolumeChanged
requests can be made - all outstanding calls will
return when the volume has been changed.
Sourcepub fn get_current_volume(
&self,
) -> QueryResponseFut<u8, DefaultFuchsiaResourceDialect>
pub fn get_current_volume( &self, ) -> QueryResponseFut<u8, DefaultFuchsiaResourceDialect>
Returns the current volume immediately.
Trait Implementations§
Source§impl AbsoluteVolumeHandlerProxyInterface for AbsoluteVolumeHandlerProxy
impl AbsoluteVolumeHandlerProxyInterface for AbsoluteVolumeHandlerProxy
type SetVolumeResponseFut = QueryResponseFut<u8>
type OnVolumeChangedResponseFut = QueryResponseFut<u8>
type GetCurrentVolumeResponseFut = QueryResponseFut<u8>
fn set_volume(&self, requested_volume: u8) -> Self::SetVolumeResponseFut
fn on_volume_changed(&self) -> Self::OnVolumeChangedResponseFut
fn get_current_volume(&self) -> Self::GetCurrentVolumeResponseFut
Source§impl Clone for AbsoluteVolumeHandlerProxy
impl Clone for AbsoluteVolumeHandlerProxy
Source§fn clone(&self) -> AbsoluteVolumeHandlerProxy
fn clone(&self) -> AbsoluteVolumeHandlerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AbsoluteVolumeHandlerProxy
impl Debug for AbsoluteVolumeHandlerProxy
Source§impl Proxy for AbsoluteVolumeHandlerProxy
impl Proxy for AbsoluteVolumeHandlerProxy
Source§type Protocol = AbsoluteVolumeHandlerMarker
type Protocol = AbsoluteVolumeHandlerMarker
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 AbsoluteVolumeHandlerProxy
impl !RefUnwindSafe for AbsoluteVolumeHandlerProxy
impl Send for AbsoluteVolumeHandlerProxy
impl Sync for AbsoluteVolumeHandlerProxy
impl Unpin for AbsoluteVolumeHandlerProxy
impl !UnwindSafe for AbsoluteVolumeHandlerProxy
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
)