struct ClientProxy<'p>(Proxy<'p>);Tuple Fields§
§0: Proxy<'p>Implementations§
Source§impl<'p> ClientProxy<'p>
impl<'p> ClientProxy<'p>
Sourcepub async fn new<P>(conn: &Connection, path: P) -> Result<ClientProxy<'p>>
pub async fn new<P>(conn: &Connection, path: P) -> Result<ClientProxy<'p>>
Creates a new proxy with the given path, and the default destination.
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.
pub async fn start(&self) -> Result<()>
pub async fn stop(&self) -> Result<()>
Sourcepub async fn set_desktop_id(&self, id: &str) -> Result<()>
pub async fn set_desktop_id(&self, id: &str) -> Result<()>
The name of the application’s desktop file, which GeoClue uses to grant some access.
pub async fn set_requested_accuracy_level(&self, level: u32) -> Result<()>
Sourcepub async fn location(&self) -> Result<OwnedObjectPath>
pub async fn location(&self) -> Result<OwnedObjectPath>
The most recent location, or / before there has been one.
Sourcepub fn cached_location(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_location( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
The most recent location, or / before there has been one.
Get the cached value of the Location property, or None if the property is not cached.
Sourcepub async fn receive_location_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_location_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
The most recent location, or / before there has been one.
Create a stream for the Location property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn receive_location_updated(&self) -> Result<LocationUpdatedStream>
pub async fn receive_location_updated(&self) -> Result<LocationUpdatedStream>
Create a stream that receives LocationUpdated signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
Sourcepub async fn receive_location_updated_with_args(
&self,
args: &[(u8, &str)],
) -> Result<LocationUpdatedStream>
pub async fn receive_location_updated_with_args( &self, args: &[(u8, &str)], ) -> Result<LocationUpdatedStream>
Create a stream that receives LocationUpdated signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for ClientProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ClientProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for ClientProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ClientProxy<'p>
Source§impl<'p> Clone for ClientProxy<'p>
impl<'p> Clone for ClientProxy<'p>
Source§fn clone(&self) -> ClientProxy<'p>
fn clone(&self) -> ClientProxy<'p>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'p> Debug for ClientProxy<'p>
impl<'p> Debug for ClientProxy<'p>
Source§impl<'a> Defaults for ClientProxy<'a>
impl<'a> Defaults for ClientProxy<'a>
const INTERFACE: &'static Option<InterfaceName<'static>>
const DESTINATION: &'static Option<BusName<'static>>
const PATH: &'static Option<ObjectPath<'static>>
Source§impl<'p> From<Proxy<'p>> for ClientProxy<'p>
impl<'p> From<Proxy<'p>> for ClientProxy<'p>
Source§impl<'p> ProxyImpl<'p> for ClientProxy<'p>
impl<'p> ProxyImpl<'p> for ClientProxy<'p>
Source§impl<'p> Serialize for ClientProxy<'p>
impl<'p> Serialize for ClientProxy<'p>
Auto Trait Implementations§
impl<'p> !RefUnwindSafe for ClientProxy<'p>
impl<'p> !UnwindSafe for ClientProxy<'p>
impl<'p> Freeze for ClientProxy<'p>
impl<'p> Send for ClientProxy<'p>
impl<'p> Sync for ClientProxy<'p>
impl<'p> Unpin for ClientProxy<'p>
impl<'p> UnsafeUnpin for ClientProxy<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DynamicType for T
impl<T> DynamicType for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more