pub struct CityService<T, R>(/* private fields */)
where
T: AsRef<[u8]>,
R: Fn() -> Result<Reader<T>, MaxMindDBError>;
Implementations§
Source§impl<T, R> CityService<T, R>
impl<T, R> CityService<T, R>
Trait Implementations§
Source§impl<T, R> Clone for CityService<T, R>
impl<T, R> Clone for CityService<T, R>
Source§fn clone(&self) -> CityService<T, R>
fn clone(&self) -> CityService<T, R>
Returns a copy 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<T, R> GeoIp for CityService<T, R>
impl<T, R> GeoIp for CityService<T, R>
fn lookup( &mut self, ctx: RpcContext<'_>, req: Message, sink: UnarySink<CityReply>, )
fn metadata( &mut self, ctx: RpcContext<'_>, _req: Empty, sink: UnarySink<MetadataReply>, )
fn reload( &mut self, ctx: RpcContext<'_>, _req: Empty, sink: UnarySink<MetadataReply>, )
Auto Trait Implementations§
impl<T, R> Freeze for CityService<T, R>where
R: Freeze,
impl<T, R> !RefUnwindSafe for CityService<T, R>
impl<T, R> Send for CityService<T, R>
impl<T, R> Sync for CityService<T, R>
impl<T, R> Unpin for CityService<T, R>where
R: Unpin,
impl<T, R> !UnwindSafe for CityService<T, R>
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