pub struct ImageProxy<'p>(/* private fields */);
Implementations§
Source§impl<'p> ImageProxy<'p>
impl<'p> ImageProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<ImageProxy<'p>>
pub async fn new(conn: &Connection) -> Result<ImageProxy<'p>>
Creates a new proxy with the default service and path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
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
.
Sourcepub async fn get_image_extents(
&self,
coord_type: CoordType,
) -> Result<(i32, i32, i32, i32)>
pub async fn get_image_extents( &self, coord_type: CoordType, ) -> Result<(i32, i32, i32, i32)>
GetImageExtents method
Sourcepub async fn get_image_position(
&self,
coord_type: CoordType,
) -> Result<(i32, i32)>
pub async fn get_image_position( &self, coord_type: CoordType, ) -> Result<(i32, i32)>
GetImagePosition method
Sourcepub async fn get_image_size(&self) -> Result<(i32, i32)>
pub async fn get_image_size(&self) -> Result<(i32, i32)>
GetImageSize method
Sourcepub async fn image_description(&self) -> Result<String>
pub async fn image_description(&self) -> Result<String>
ImageDescription property
Sourcepub fn cached_image_description(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_image_description( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the ImageDescription
property, or None
if the property is not cached.
Sourcepub async fn receive_image_description_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_image_description_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the ImageDescription
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Sourcepub async fn image_locale(&self) -> Result<String>
pub async fn image_locale(&self) -> Result<String>
ImageLocale property
Sourcepub fn cached_image_locale(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_image_locale( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Get the cached value of the ImageLocale
property, or None
if the property is not cached.
Sourcepub async fn receive_image_locale_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_image_locale_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Create a stream for the ImageLocale
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for ImageProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ImageProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for ImageProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ImageProxy<'p>
Source§impl<'p> Clone for ImageProxy<'p>
impl<'p> Clone for ImageProxy<'p>
Source§fn clone(&self) -> ImageProxy<'p>
fn clone(&self) -> ImageProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more