struct LocationProxyBlocking<'p>(Proxy<'p>);Tuple Fields§
§0: Proxy<'p>Implementations§
Source§impl<'p> LocationProxyBlocking<'p>
impl<'p> LocationProxyBlocking<'p>
Sourcepub fn new<P>(conn: &Connection, path: P) -> Result<LocationProxyBlocking<'p>>
pub fn new<P>(conn: &Connection, path: P) -> Result<LocationProxyBlocking<'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 fn latitude(&self) -> Result<f64>
Sourcepub fn cached_latitude(
&self,
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_latitude( &self, ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Get the cached value of the Latitude property, or None if the property is not cached.
Sourcepub fn receive_latitude_changed(
&self,
) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
pub fn receive_latitude_changed( &self, ) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
Create a stream for the Latitude property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
pub fn longitude(&self) -> Result<f64>
Sourcepub fn cached_longitude(
&self,
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_longitude( &self, ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Get the cached value of the Longitude property, or None if the property is not cached.
Sourcepub fn receive_longitude_changed(
&self,
) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
pub fn receive_longitude_changed( &self, ) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
Create a stream for the Longitude property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
Sourcepub fn cached_accuracy(
&self,
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_accuracy( &self, ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Horizontal accuracy in metres.
Get the cached value of the Accuracy property, or None if the property is not cached.
Sourcepub fn receive_accuracy_changed(
&self,
) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
pub fn receive_accuracy_changed( &self, ) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
Horizontal accuracy in metres.
Create a stream for the Accuracy property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
pub fn altitude(&self) -> Result<f64>
Sourcepub fn cached_altitude(
&self,
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_altitude( &self, ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Get the cached value of the Altitude property, or None if the property is not cached.
Sourcepub fn receive_altitude_changed(
&self,
) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
pub fn receive_altitude_changed( &self, ) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
Create a stream for the Altitude property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
Sourcepub fn cached_speed(
&self,
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_speed( &self, ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Metres per second, or negative if unknown.
Get the cached value of the Speed property, or None if the property is not cached.
Sourcepub fn receive_speed_changed(
&self,
) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
pub fn receive_speed_changed( &self, ) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
Metres per second, or negative if unknown.
Create a stream for the Speed property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
Sourcepub fn heading(&self) -> Result<f64>
pub fn heading(&self) -> Result<f64>
Degrees clockwise from true north, or negative if unknown.
Sourcepub fn cached_heading(
&self,
) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
pub fn cached_heading( &self, ) -> Result<Option<<Result<f64> as ResultAdapter>::Ok>, <Result<f64> as ResultAdapter>::Err>
Degrees clockwise from true north, or negative if unknown.
Get the cached value of the Heading property, or None if the property is not cached.
Sourcepub fn receive_heading_changed(
&self,
) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
pub fn receive_heading_changed( &self, ) -> PropertyIterator<'p, <Result<f64> as ResultAdapter>::Ok> ⓘ
Degrees clockwise from true north, or negative if unknown.
Create a stream for the Heading property changes. This is a convenient wrapper around zbus::blocking::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for LocationProxyBlocking<'p>
impl<'p> AsMut<Proxy<'p>> for LocationProxyBlocking<'p>
Source§impl<'p> AsRef<Proxy<'p>> for LocationProxyBlocking<'p>
impl<'p> AsRef<Proxy<'p>> for LocationProxyBlocking<'p>
Source§impl<'p> Clone for LocationProxyBlocking<'p>
impl<'p> Clone for LocationProxyBlocking<'p>
Source§fn clone(&self) -> LocationProxyBlocking<'p>
fn clone(&self) -> LocationProxyBlocking<'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 LocationProxyBlocking<'p>
impl<'p> Debug for LocationProxyBlocking<'p>
Source§impl<'a> Defaults for LocationProxyBlocking<'a>
impl<'a> Defaults for LocationProxyBlocking<'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 LocationProxyBlocking<'p>
impl<'p> From<Proxy<'p>> for LocationProxyBlocking<'p>
Source§impl<'p> ProxyImpl<'p> for LocationProxyBlocking<'p>
impl<'p> ProxyImpl<'p> for LocationProxyBlocking<'p>
Source§impl<'p> Serialize for LocationProxyBlocking<'p>
impl<'p> Serialize for LocationProxyBlocking<'p>
Auto Trait Implementations§
impl<'p> !RefUnwindSafe for LocationProxyBlocking<'p>
impl<'p> !UnwindSafe for LocationProxyBlocking<'p>
impl<'p> Freeze for LocationProxyBlocking<'p>
impl<'p> Send for LocationProxyBlocking<'p>
impl<'p> Sync for LocationProxyBlocking<'p>
impl<'p> Unpin for LocationProxyBlocking<'p>
impl<'p> UnsafeUnpin for LocationProxyBlocking<'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