pub struct PlayerProxyBlocking<'p>(/* private fields */);Implementations§
Source§impl<'p> PlayerProxyBlocking<'p>
impl<'p> PlayerProxyBlocking<'p>
Sourcepub fn new<D>(
conn: &Connection,
destination: D,
) -> Result<PlayerProxyBlocking<'p>, Error>
pub fn new<D>( conn: &Connection, destination: D, ) -> Result<PlayerProxyBlocking<'p>, Error>
Creates a new proxy with the given destination, and the default path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, PlayerProxyBlocking<'p>>
pub fn builder(conn: &Connection) -> Builder<'p, PlayerProxyBlocking<'p>>
Returns a customizable builder for this proxy.
Sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
Sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy.
pub fn next(&self) -> Result<(), Error>
pub fn previous(&self) -> Result<(), Error>
pub fn pause(&self) -> Result<(), Error>
pub fn play_pause(&self) -> Result<(), Error>
pub fn stop(&self) -> Result<(), Error>
pub fn play(&self) -> Result<(), Error>
pub fn seek(&self, offset: i64) -> Result<(), Error>
pub fn set_position(&self, offset: i64) -> Result<(), Error>
pub fn open_uri(&self, uri: &str) -> Result<(), Error>
pub fn playback_status(&self) -> Result<PlaybackStatus, Error>
Sourcepub fn cached_playback_status(
&self,
) -> Result<Option<<Result<PlaybackStatus, Error> as ResultAdapter>::Ok>, <Result<PlaybackStatus, Error> as ResultAdapter>::Err>
pub fn cached_playback_status( &self, ) -> Result<Option<<Result<PlaybackStatus, Error> as ResultAdapter>::Ok>, <Result<PlaybackStatus, Error> as ResultAdapter>::Err>
Get the cached value of the PlaybackStatus property, or None if the property is not cached.
Sourcepub fn receive_playback_status_changed(
&self,
) -> PropertyIterator<'p, <Result<PlaybackStatus, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_playback_status_changed( &self, ) -> PropertyIterator<'p, <Result<PlaybackStatus, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the PlaybackStatus property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
pub fn rate(&self) -> Result<f64, Error>
Sourcepub fn cached_rate(
&self,
) -> Result<Option<<Result<f64, Error> as ResultAdapter>::Ok>, <Result<f64, Error> as ResultAdapter>::Err>
pub fn cached_rate( &self, ) -> Result<Option<<Result<f64, Error> as ResultAdapter>::Ok>, <Result<f64, Error> as ResultAdapter>::Err>
Get the cached value of the Rate property, or None if the property is not cached.
Sourcepub fn receive_rate_changed(
&self,
) -> PropertyIterator<'p, <Result<f64, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_rate_changed( &self, ) -> PropertyIterator<'p, <Result<f64, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the Rate property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
pub fn metadata(&self) -> Result<Metadata, Error>
Sourcepub fn cached_metadata(
&self,
) -> Result<Option<<Result<Metadata, Error> as ResultAdapter>::Ok>, <Result<Metadata, Error> as ResultAdapter>::Err>
pub fn cached_metadata( &self, ) -> Result<Option<<Result<Metadata, Error> as ResultAdapter>::Ok>, <Result<Metadata, Error> as ResultAdapter>::Err>
Get the cached value of the Metadata property, or None if the property is not cached.
Sourcepub fn receive_metadata_changed(
&self,
) -> PropertyIterator<'p, <Result<Metadata, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_metadata_changed( &self, ) -> PropertyIterator<'p, <Result<Metadata, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the Metadata property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
pub fn volume(&self) -> Result<f64, Error>
Sourcepub fn cached_volume(
&self,
) -> Result<Option<<Result<f64, Error> as ResultAdapter>::Ok>, <Result<f64, Error> as ResultAdapter>::Err>
pub fn cached_volume( &self, ) -> Result<Option<<Result<f64, Error> as ResultAdapter>::Ok>, <Result<f64, Error> as ResultAdapter>::Err>
Get the cached value of the Volume property, or None if the property is not cached.
Sourcepub fn receive_volume_changed(
&self,
) -> PropertyIterator<'p, <Result<f64, Error> as ResultAdapter>::Ok> ⓘ
pub fn receive_volume_changed( &self, ) -> PropertyIterator<'p, <Result<f64, Error> as ResultAdapter>::Ok> ⓘ
Create a stream for the Volume property changes. This is a convenient wrapper around [zbus::blocking::Proxy::receive_property_changed].
pub fn position(&self) -> Result<i64, Error>
Sourcepub fn receive_seeked(&self) -> Result<SeekedIterator, Error>
pub fn receive_seeked(&self) -> Result<SeekedIterator, Error>
Create a stream that receives Seeked signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal.
Sourcepub fn receive_seeked_with_args(
&self,
args: &[(u8, &str)],
) -> Result<SeekedIterator, Error>
pub fn receive_seeked_with_args( &self, args: &[(u8, &str)], ) -> Result<SeekedIterator, Error>
Create a stream that receives Seeked signals.
This a convenient wrapper around zbus::blocking::Proxy::receive_signal_with_args.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for PlayerProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for PlayerProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for PlayerProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for PlayerProxyBlocking<'p>
Source§impl<'p> Clone for PlayerProxyBlocking<'p>
impl<'p> Clone for PlayerProxyBlocking<'p>
Source§fn clone(&self) -> PlayerProxyBlocking<'p>
fn clone(&self) -> PlayerProxyBlocking<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'p> Debug for PlayerProxyBlocking<'p>
impl<'p> Debug for PlayerProxyBlocking<'p>
Source§impl<'a> Defaults for PlayerProxyBlocking<'a>
impl<'a> Defaults for PlayerProxyBlocking<'a>
Source§impl<'p> From<Proxy<'p>> for PlayerProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for PlayerProxyBlocking<'p>
Source§fn from(proxy: Proxy<'p>) -> PlayerProxyBlocking<'p>
fn from(proxy: Proxy<'p>) -> PlayerProxyBlocking<'p>
Source§impl<'p> ProxyImpl<'p> for PlayerProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for PlayerProxyBlocking<'p>
Source§fn builder(conn: &Connection) -> Builder<'p, PlayerProxyBlocking<'p>>
fn builder(conn: &Connection) -> Builder<'p, PlayerProxyBlocking<'p>>
Source§fn into_inner(self) -> Proxy<'p>
fn into_inner(self) -> Proxy<'p>
self, returning the underlying zbus::Proxy.Source§impl<'p> Serialize for PlayerProxyBlocking<'p>
impl<'p> Serialize for PlayerProxyBlocking<'p>
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Auto Trait Implementations§
impl<'p> Freeze for PlayerProxyBlocking<'p>
impl<'p> !RefUnwindSafe for PlayerProxyBlocking<'p>
impl<'p> Send for PlayerProxyBlocking<'p>
impl<'p> Sync for PlayerProxyBlocking<'p>
impl<'p> Unpin for PlayerProxyBlocking<'p>
impl<'p> !UnwindSafe for PlayerProxyBlocking<'p>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more