pub struct LocationConfig { /* private fields */ }Expand description
Configuration for how to determine location from a request.
Implementations§
Source§impl LocationConfig
impl LocationConfig
Sourcepub fn with_provider<P: Provider + 'static>(self, provider: P) -> Self
pub fn with_provider<P: Provider + 'static>(self, provider: P) -> Self
Add a provider to this configuration. It will be wrapped into an Arc<Box<T>>.
Trait Implementations§
Source§impl Clone for LocationConfig
impl Clone for LocationConfig
Source§fn clone(&self) -> LocationConfig
fn clone(&self) -> LocationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for LocationConfig
impl Default for LocationConfig
Source§fn default() -> LocationConfig
fn default() -> LocationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocationConfig
impl !RefUnwindSafe for LocationConfig
impl Send for LocationConfig
impl Sync for LocationConfig
impl Unpin for LocationConfig
impl !UnwindSafe for LocationConfig
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