pub struct CreateSessionOptions { /* private fields */ }Available on crate feature
location only.Expand description
Specified options for a LocationProxy::create_session request.
Implementations§
Source§impl CreateSessionOptions
impl CreateSessionOptions
Sourcepub fn set_distance_threshold(
self,
distance_threshold: impl Into<Option<u32>>,
) -> Self
pub fn set_distance_threshold( self, distance_threshold: impl Into<Option<u32>>, ) -> Self
Distance threshold in meters. Default is 0.
Sourcepub fn set_time_threshold(self, time_threshold: impl Into<Option<u32>>) -> Self
pub fn set_time_threshold(self, time_threshold: impl Into<Option<u32>>) -> Self
Time threshold in seconds. Default is 0.
Sourcepub fn set_accuracy(self, accuracy: impl Into<Option<Accuracy>>) -> Self
pub fn set_accuracy(self, accuracy: impl Into<Option<Accuracy>>) -> Self
Requested accuracy. Default is Accuracy::Exact.
Trait Implementations§
Source§impl Debug for CreateSessionOptions
impl Debug for CreateSessionOptions
Source§impl Default for CreateSessionOptions
impl Default for CreateSessionOptions
Source§fn default() -> CreateSessionOptions
fn default() -> CreateSessionOptions
Returns the “default value” for a type. Read more
Source§impl Serialize for CreateSessionOptions
impl Serialize for CreateSessionOptions
Auto Trait Implementations§
impl Freeze for CreateSessionOptions
impl RefUnwindSafe for CreateSessionOptions
impl Send for CreateSessionOptions
impl Sync for CreateSessionOptions
impl Unpin for CreateSessionOptions
impl UnsafeUnpin for CreateSessionOptions
impl UnwindSafe for CreateSessionOptions
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