pub struct GeoLayer { /* private fields */ }Expand description
Tower layer that performs geolocation lookup and inserts
Location into request extensions.
Apply this layer after ClientIpLayer so that
ClientIp is already present in extensions when GeoLayer runs.
If ClientIp is absent the request passes through without modification.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GeoLayer
impl RefUnwindSafe for GeoLayer
impl Send for GeoLayer
impl Sync for GeoLayer
impl Unpin for GeoLayer
impl UnsafeUnpin for GeoLayer
impl UnwindSafe for GeoLayer
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