Struct mmdb_grpc::CityService
source · [−]pub struct CityService<T, R>(_, _)
where
T: AsRef<[u8]>,
R: Fn() -> Result<Reader<T>, MaxMindDBError>;
Implementations
sourceimpl<T, R> CityService<T, R>where
T: AsRef<[u8]>,
R: Fn() -> Result<Reader<T>, MaxMindDBError>,
impl<T, R> CityService<T, R>where
T: AsRef<[u8]>,
R: Fn() -> Result<Reader<T>, MaxMindDBError>,
Trait Implementations
sourceimpl<T: Clone, R: Clone> Clone for CityService<T, R>where
T: AsRef<[u8]>,
R: Fn() -> Result<Reader<T>, MaxMindDBError>,
impl<T: Clone, R: Clone> Clone for CityService<T, R>where
T: AsRef<[u8]>,
R: Fn() -> Result<Reader<T>, MaxMindDBError>,
sourcefn clone(&self) -> CityService<T, R>
fn clone(&self) -> CityService<T, R>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T, R> GeoIp for CityService<T, R>where
T: AsRef<[u8]>,
R: Fn() -> Result<Reader<T>, MaxMindDBError>,
impl<T, R> GeoIp for CityService<T, R>where
T: AsRef<[u8]>,
R: Fn() -> Result<Reader<T>, MaxMindDBError>,
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> !RefUnwindSafe for CityService<T, R>
impl<T, R> Send for CityService<T, R>where
R: Send,
T: Send + Sync,
impl<T, R> Sync for CityService<T, R>where
R: Sync,
T: Send + Sync,
impl<T, R> Unpin for CityService<T, R>where
R: Unpin,
impl<T, R> !UnwindSafe for CityService<T, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more