Struct quilkin::config::DatacenterMap
source · pub struct DatacenterMap { /* private fields */ }
Implementations§
source§impl DatacenterMap
impl DatacenterMap
pub fn insert(&self, ip: IpAddr, datacenter: Datacenter) -> Option<Datacenter>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn version(&self) -> u64
pub fn get(&self, key: &IpAddr) -> Option<Ref<'_, IpAddr, Datacenter>>
pub fn iter(&self) -> Iter<'_, IpAddr, Datacenter>
Trait Implementations§
source§impl Clone for DatacenterMap
impl Clone for DatacenterMap
source§impl Debug for DatacenterMap
impl Debug for DatacenterMap
source§impl Default for DatacenterMap
impl Default for DatacenterMap
source§fn default() -> DatacenterMap
fn default() -> DatacenterMap
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DatacenterMap
impl<'de> Deserialize<'de> for DatacenterMap
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for DatacenterMap
impl JsonSchema for DatacenterMap
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for DatacenterMap
impl PartialEq for DatacenterMap
source§impl Serialize for DatacenterMap
impl Serialize for DatacenterMap
Auto Trait Implementations§
impl !RefUnwindSafe for DatacenterMap
impl Send for DatacenterMap
impl Sync for DatacenterMap
impl Unpin for DatacenterMap
impl UnwindSafe for DatacenterMap
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request