Struct atspi_proxies::image::ImageProxy
source · 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 moresource§impl<'p> Debug for ImageProxy<'p>
impl<'p> Debug for ImageProxy<'p>
source§impl<'p> From<Proxy<'p>> for ImageProxy<'p>
impl<'p> From<Proxy<'p>> for ImageProxy<'p>
source§impl<'a> ProxyDefault for ImageProxy<'a>
impl<'a> ProxyDefault for ImageProxy<'a>
source§impl<'p> ProxyImpl<'p> for ImageProxy<'p>
impl<'p> ProxyImpl<'p> for ImageProxy<'p>
source§impl<'p> Serialize for ImageProxy<'p>
impl<'p> Serialize for ImageProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for ImageProxy<'p>
impl<'p> !RefUnwindSafe for ImageProxy<'p>
impl<'p> Send for ImageProxy<'p>
impl<'p> Sync for ImageProxy<'p>
impl<'p> Unpin for ImageProxy<'p>
impl<'p> !UnwindSafe for ImageProxy<'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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)