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_text_selections(&self) -> Result<Vec<TextSelection>>
pub async fn get_text_selections(&self) -> Result<Vec<TextSelection>>
GetTextSelections method
Sourcepub async fn set_text_selections(
&self,
selections: Vec<TextSelection>,
) -> Result<bool>
pub async fn set_text_selections( &self, selections: Vec<TextSelection>, ) -> Result<bool>
SetTextSelections method
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>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more