pub struct DocumentProxyBlocking<'p>(/* private fields */);
Implementations§
Source§impl<'p> DocumentProxyBlocking<'p>
impl<'p> DocumentProxyBlocking<'p>
Sourcepub fn new(conn: &Connection) -> Result<DocumentProxyBlocking<'p>>
pub fn new(conn: &Connection) -> Result<DocumentProxyBlocking<'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 fn get_text_selections(&self) -> Result<Vec<TextSelection>>
pub fn get_text_selections(&self) -> Result<Vec<TextSelection>>
GetTextSelections method
Sourcepub fn set_text_selections(
&self,
selections: Vec<TextSelection>,
) -> Result<bool>
pub fn set_text_selections( &self, selections: Vec<TextSelection>, ) -> Result<bool>
SetTextSelections method
Sourcepub fn get_attribute_value(&self, attributename: &str) -> Result<String>
pub fn get_attribute_value(&self, attributename: &str) -> Result<String>
GetAttributeValue method
Sourcepub fn get_locale(&self) -> Result<String>
pub fn get_locale(&self) -> Result<String>
GetLocale method
Sourcepub fn current_page_number(&self) -> Result<i32>
pub 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 fn receive_current_page_number_changed(
&self,
) -> PropertyIterator<'p, <Result<i32> as ResultAdapter>::Ok>
pub fn receive_current_page_number_changed( &self, ) -> PropertyIterator<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the CurrentPageNumber
property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed
.
Sourcepub fn page_count(&self) -> Result<i32>
pub 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 fn receive_page_count_changed(
&self,
) -> PropertyIterator<'p, <Result<i32> as ResultAdapter>::Ok>
pub fn receive_page_count_changed( &self, ) -> PropertyIterator<'p, <Result<i32> as ResultAdapter>::Ok>
Create a stream for the PageCount
property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed
.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for DocumentProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for DocumentProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for DocumentProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for DocumentProxyBlocking<'p>
Source§impl<'p> Clone for DocumentProxyBlocking<'p>
impl<'p> Clone for DocumentProxyBlocking<'p>
Source§fn clone(&self) -> DocumentProxyBlocking<'p>
fn clone(&self) -> DocumentProxyBlocking<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more