pub struct LocationInterface { /* private fields */ }Implementations§
Source§impl LocationInterface
impl LocationInterface
pub const fn is_available(self) -> bool
pub fn start(self) -> bool
pub fn stop(self) -> bool
pub fn set_interval( self, interval: impl Into<LocationIntervalMillis>, distance: impl Into<LocationIntervalMeters>, ) -> bool
pub fn position(self) -> Option<LocationPosition>
Trait Implementations§
Source§impl Clone for LocationInterface
impl Clone for LocationInterface
Source§fn clone(&self) -> LocationInterface
fn clone(&self) -> LocationInterface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocationInterface
impl Debug for LocationInterface
Source§impl Default for LocationInterface
impl Default for LocationInterface
Source§fn default() -> LocationInterface
fn default() -> LocationInterface
Returns the “default value” for a type. Read more
impl Copy for LocationInterface
Auto Trait Implementations§
impl Freeze for LocationInterface
impl RefUnwindSafe for LocationInterface
impl Send for LocationInterface
impl Sync for LocationInterface
impl Unpin for LocationInterface
impl UnsafeUnpin for LocationInterface
impl UnwindSafe for LocationInterface
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