pub struct BrowseControllerSynchronousProxy { /* private fields */ }Implementations§
Source§impl BrowseControllerSynchronousProxy
impl BrowseControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<BrowseControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<BrowseControllerEvent, 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 get_media_player_items(
&self,
start_index: u32,
end_index: u32,
___deadline: MonotonicInstant,
) -> Result<BrowseControllerGetMediaPlayerItemsResult, Error>
pub fn get_media_player_items( &self, start_index: u32, end_index: u32, ___deadline: MonotonicInstant, ) -> Result<BrowseControllerGetMediaPlayerItemsResult, Error>
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,
___deadline: MonotonicInstant,
) -> Result<BrowseControllerGetNowPlayingItemsResult, Error>
pub fn get_now_playing_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption, ___deadline: MonotonicInstant, ) -> Result<BrowseControllerGetNowPlayingItemsResult, Error>
Used for GetFolderItems(NowPlayingList). Gets the list of items from the now playing list aka the queue of the addressed media player.
- request
end_indexis inclusive.
Sourcepub fn get_file_system_items(
&self,
start_index: u32,
end_index: u32,
attribute_option: &AttributeRequestOption,
___deadline: MonotonicInstant,
) -> Result<BrowseControllerGetFileSystemItemsResult, Error>
pub fn get_file_system_items( &self, start_index: u32, end_index: u32, attribute_option: &AttributeRequestOption, ___deadline: MonotonicInstant, ) -> Result<BrowseControllerGetFileSystemItemsResult, Error>
Used for GetFolderItems(MediaPlayerVirtualFilesystem). Gets the list of folder item/media element item.
- request
end_indexis inclusive.
Sourcepub fn change_path(
&self,
path: &Path,
___deadline: MonotonicInstant,
) -> Result<BrowseControllerChangePathResult, Error>
pub fn change_path( &self, path: &Path, ___deadline: MonotonicInstant, ) -> Result<BrowseControllerChangePathResult, Error>
Used for ChangePath browse command.
- request
pathdictates whether or not the direction will be Move Up or Move down. Ifpath.parentis set, direction will be Move Up. Ifpath.child_folder_uidis set, direction will be Move Down.
Sourcepub fn play_file_system_item(
&self,
uid: u64,
___deadline: MonotonicInstant,
) -> Result<BrowseControllerPlayFileSystemItemResult, Error>
pub fn play_file_system_item( &self, uid: u64, ___deadline: MonotonicInstant, ) -> Result<BrowseControllerPlayFileSystemItemResult, Error>
Used for PlayItem(FileSystem).
Sourcepub fn play_now_playing_item(
&self,
uid: u64,
___deadline: MonotonicInstant,
) -> Result<BrowseControllerPlayNowPlayingItemResult, Error>
pub fn play_now_playing_item( &self, uid: u64, ___deadline: MonotonicInstant, ) -> Result<BrowseControllerPlayNowPlayingItemResult, Error>
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,
___deadline: MonotonicInstant,
) -> Result<BrowseControllerSetBrowsedPlayerResult, Error>
pub fn set_browsed_player( &self, player_id: u16, ___deadline: MonotonicInstant, ) -> Result<BrowseControllerSetBrowsedPlayerResult, Error>
Changes the addressed player_id on the target when multiple are supported.
Trait Implementations§
Source§impl From<BrowseControllerSynchronousProxy> for Handle
Available on Fuchsia only.
impl From<BrowseControllerSynchronousProxy> for Handle
Available on Fuchsia only.
Source§fn from(value: BrowseControllerSynchronousProxy) -> Self
fn from(value: BrowseControllerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl From<Channel> for BrowseControllerSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for BrowseControllerSynchronousProxy
Available on Fuchsia only.
Source§impl FromClient for BrowseControllerSynchronousProxy
Available on Fuchsia only.
impl FromClient for BrowseControllerSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = BrowseControllerMarker
type Protocol = BrowseControllerMarker
The protocol.
Source§fn from_client(value: ClientEnd<BrowseControllerMarker>) -> Self
fn from_client(value: ClientEnd<BrowseControllerMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for BrowseControllerSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for BrowseControllerSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = BrowseControllerProxy
type Proxy = BrowseControllerProxy
The async proxy for the same protocol.
Source§type Protocol = BrowseControllerMarker
type Protocol = BrowseControllerMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for BrowseControllerSynchronousProxy
impl RefUnwindSafe for BrowseControllerSynchronousProxy
impl Send for BrowseControllerSynchronousProxy
impl Sync for BrowseControllerSynchronousProxy
impl Unpin for BrowseControllerSynchronousProxy
impl UnwindSafe for BrowseControllerSynchronousProxy
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