Struct atspi_proxies::document::DocumentProxy
source · pub struct DocumentProxy<'p>(/* private fields */);
Implementations§
source§impl<'p> DocumentProxy<'p>
impl<'p> DocumentProxy<'p>
sourcepub async fn new(conn: &Connection) -> Result<DocumentProxy<'p>>
pub async fn new(conn: &Connection) -> Result<DocumentProxy<'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_attribute_value(&self, attributename: &str) -> Result<String>
pub async fn get_attribute_value(&self, attributename: &str) -> Result<String>
GetAttributeValue method
sourcepub async fn get_locale(&self) -> Result<String>
pub async fn get_locale(&self) -> Result<String>
GetLocale method
sourcepub async fn current_page_number(&self) -> Result<i32>
pub async fn current_page_number(&self) -> Result<i32>
CurrentPageNumber property
sourcepub fn cached_current_page_number(
&self
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_current_page_number( &self ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
Get the cached value of the CurrentPageNumber
property, or None
if the property is not cached.
sourcepub async fn receive_current_page_number_changed(
&self
) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
pub async fn receive_current_page_number_changed( &self ) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the CurrentPageNumber
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
sourcepub async fn page_count(&self) -> Result<i32>
pub async fn page_count(&self) -> Result<i32>
PageCount property
sourcepub fn cached_page_count(
&self
) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
pub fn cached_page_count( &self ) -> Result<Option<<Result<i32> as ResultAdapter>::Ok>, <Result<i32> as ResultAdapter>::Err>
Get the cached value of the PageCount
property, or None
if the property is not cached.
sourcepub async fn receive_page_count_changed(
&self
) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
pub async fn receive_page_count_changed( &self ) -> PropertyStream<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the PageCount
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Trait Implementations§
source§impl<'p> AsMut<Proxy<'p>> for DocumentProxy<'p>
impl<'p> AsMut<Proxy<'p>> for DocumentProxy<'p>
source§impl<'p> AsRef<Proxy<'p>> for DocumentProxy<'p>
impl<'p> AsRef<Proxy<'p>> for DocumentProxy<'p>
source§impl<'p> Clone for DocumentProxy<'p>
impl<'p> Clone for DocumentProxy<'p>
source§fn clone(&self) -> DocumentProxy<'p>
fn clone(&self) -> DocumentProxy<'p>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'p> Debug for DocumentProxy<'p>
impl<'p> Debug for DocumentProxy<'p>
source§impl<'p> From<Proxy<'p>> for DocumentProxy<'p>
impl<'p> From<Proxy<'p>> for DocumentProxy<'p>
source§impl<'a> ProxyDefault for DocumentProxy<'a>
impl<'a> ProxyDefault for DocumentProxy<'a>
source§impl<'p> ProxyImpl<'p> for DocumentProxy<'p>
impl<'p> ProxyImpl<'p> for DocumentProxy<'p>
source§impl<'p> Serialize for DocumentProxy<'p>
impl<'p> Serialize for DocumentProxy<'p>
Auto Trait Implementations§
impl<'p> Freeze for DocumentProxy<'p>
impl<'p> !RefUnwindSafe for DocumentProxy<'p>
impl<'p> Send for DocumentProxy<'p>
impl<'p> Sync for DocumentProxy<'p>
impl<'p> Unpin for DocumentProxy<'p>
impl<'p> !UnwindSafe for DocumentProxy<'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
Mutably borrows from an owned value. Read more
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more