pub struct BrowseControllerProxy { /* private fields */ }
Implementations§
Source§impl BrowseControllerProxy
impl BrowseControllerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.avrcp/BrowseController.
Sourcepub fn take_event_stream(&self) -> BrowseControllerEventStream
pub fn take_event_stream(&self) -> BrowseControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_media_player_items(
&self,
start_index: u32,
end_index: u32,
) -> QueryResponseFut<BrowseControllerGetMediaPlayerItemsResult, DefaultFuchsiaResourceDialect>
pub fn get_media_player_items( &self, start_index: u32, end_index: u32, ) -> QueryResponseFut<BrowseControllerGetMediaPlayerItemsResult, DefaultFuchsiaResourceDialect>
Used for GetFolderItems(MediaPlayerList). Gets the list of media players. End index is inclusive.
Sourcepub fn get_now_playing_items(
&self,
start_index: u32,
end_index: u32,
attribute_option: &AttributeRequestOption,
) -> QueryResponseFut<BrowseControllerGetNowPlayingItemsResult, DefaultFuchsiaResourceDialect>
pub fn get_now_playing_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption, ) -> QueryResponseFut<BrowseControllerGetNowPlayingItemsResult, DefaultFuchsiaResourceDialect>
Used for GetFolderItems(NowPlayingList). Gets the list of items from the now playing list aka the queue of the addressed media player.
- request
end_index
is inclusive.
Sourcepub fn get_file_system_items(
&self,
start_index: u32,
end_index: u32,
attribute_option: &AttributeRequestOption,
) -> QueryResponseFut<BrowseControllerGetFileSystemItemsResult, DefaultFuchsiaResourceDialect>
pub fn get_file_system_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption, ) -> QueryResponseFut<BrowseControllerGetFileSystemItemsResult, DefaultFuchsiaResourceDialect>
Used for GetFolderItems(MediaPlayerVirtualFilesystem). Gets the list of folder item/media element item.
- request
end_index
is inclusive.
Sourcepub fn change_path(
&self,
path: &Path,
) -> QueryResponseFut<BrowseControllerChangePathResult, DefaultFuchsiaResourceDialect>
pub fn change_path( &self, path: &Path, ) -> QueryResponseFut<BrowseControllerChangePathResult, DefaultFuchsiaResourceDialect>
Used for ChangePath browse command.
- request
path
dictates whether or not the direction will be Move Up or Move down. Ifpath.parent
is set, direction will be Move Up. Ifpath.child_folder_uid
is set, direction will be Move Down.
Sourcepub fn play_file_system_item(
&self,
uid: u64,
) -> QueryResponseFut<BrowseControllerPlayFileSystemItemResult, DefaultFuchsiaResourceDialect>
pub fn play_file_system_item( &self, uid: u64, ) -> QueryResponseFut<BrowseControllerPlayFileSystemItemResult, DefaultFuchsiaResourceDialect>
Used for PlayItem(FileSystem).
Sourcepub fn play_now_playing_item(
&self,
uid: u64,
) -> QueryResponseFut<BrowseControllerPlayNowPlayingItemResult, DefaultFuchsiaResourceDialect>
pub fn play_now_playing_item( &self, uid: u64, ) -> QueryResponseFut<BrowseControllerPlayNowPlayingItemResult, DefaultFuchsiaResourceDialect>
Used for PlayItem(NowPlayingList). Plays the specified item from the now playing list aka the queue of the addressed media player.
Sourcepub fn set_browsed_player(
&self,
player_id: u16,
) -> QueryResponseFut<BrowseControllerSetBrowsedPlayerResult, DefaultFuchsiaResourceDialect>
pub fn set_browsed_player( &self, player_id: u16, ) -> QueryResponseFut<BrowseControllerSetBrowsedPlayerResult, DefaultFuchsiaResourceDialect>
Changes the addressed player_id
on the target when multiple are supported.
Trait Implementations§
Source§impl BrowseControllerProxyInterface for BrowseControllerProxy
impl BrowseControllerProxyInterface for BrowseControllerProxy
type GetMediaPlayerItemsResponseFut = QueryResponseFut<Result<Vec<MediaPlayerItem>, BrowseControllerError>>
type GetNowPlayingItemsResponseFut = QueryResponseFut<Result<Vec<MediaElementItem>, BrowseControllerError>>
type GetFileSystemItemsResponseFut = QueryResponseFut<Result<Vec<FileSystemItem>, BrowseControllerError>>
type ChangePathResponseFut = QueryResponseFut<Result<u32, BrowseControllerError>>
type PlayFileSystemItemResponseFut = QueryResponseFut<Result<(), BrowseControllerError>>
type PlayNowPlayingItemResponseFut = QueryResponseFut<Result<(), BrowseControllerError>>
type SetBrowsedPlayerResponseFut = QueryResponseFut<Result<(), BrowseControllerError>>
fn get_media_player_items( &self, start_index: u32, end_index: u32, ) -> Self::GetMediaPlayerItemsResponseFut
fn get_now_playing_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption, ) -> Self::GetNowPlayingItemsResponseFut
fn get_file_system_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption, ) -> Self::GetFileSystemItemsResponseFut
fn change_path(&self, path: &Path) -> Self::ChangePathResponseFut
fn play_file_system_item(&self, uid: u64) -> Self::PlayFileSystemItemResponseFut
fn play_now_playing_item(&self, uid: u64) -> Self::PlayNowPlayingItemResponseFut
fn set_browsed_player( &self, player_id: u16, ) -> Self::SetBrowsedPlayerResponseFut
Source§impl Clone for BrowseControllerProxy
impl Clone for BrowseControllerProxy
Source§fn clone(&self) -> BrowseControllerProxy
fn clone(&self) -> BrowseControllerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BrowseControllerProxy
impl Debug for BrowseControllerProxy
Source§impl Proxy for BrowseControllerProxy
impl Proxy for BrowseControllerProxy
Source§type Protocol = BrowseControllerMarker
type Protocol = BrowseControllerMarker
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 BrowseControllerProxy
impl !RefUnwindSafe for BrowseControllerProxy
impl Send for BrowseControllerProxy
impl Sync for BrowseControllerProxy
impl Unpin for BrowseControllerProxy
impl !UnwindSafe for BrowseControllerProxy
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
)