Struct quilkin::endpoint::LocalityEndpoints
source · [−]Expand description
A set of endpoints optionally grouped by a Locality
.
Fields
locality: Option<Locality>
endpoints: BTreeSet<Endpoint>
Implementations
Trait Implementations
sourceimpl Clone for LocalityEndpoints
impl Clone for LocalityEndpoints
sourcefn clone(&self) -> LocalityEndpoints
fn clone(&self) -> LocalityEndpoints
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 Debug for LocalityEndpoints
impl Debug for LocalityEndpoints
sourceimpl Default for LocalityEndpoints
impl Default for LocalityEndpoints
sourcefn default() -> LocalityEndpoints
fn default() -> LocalityEndpoints
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LocalityEndpoints
impl<'de> Deserialize<'de> for LocalityEndpoints
sourcefn 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
sourceimpl From<Endpoint> for LocalityEndpoints
impl From<Endpoint> for LocalityEndpoints
sourceimpl From<LocalityEndpoints> for LocalityLbEndpoints
impl From<LocalityEndpoints> for LocalityLbEndpoints
sourcefn from(value: LocalityEndpoints) -> Self
fn from(value: LocalityEndpoints) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<SocketAddr, Global>> for LocalityEndpoints
impl From<Vec<SocketAddr, Global>> for LocalityEndpoints
sourcefn from(endpoints: Vec<SocketAddr>) -> Self
fn from(endpoints: Vec<SocketAddr>) -> Self
Converts to this type from the input type.
sourceimpl JsonSchema for LocalityEndpoints
impl JsonSchema for LocalityEndpoints
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
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 moresourceimpl Ord for LocalityEndpoints
impl Ord for LocalityEndpoints
sourcefn cmp(&self, other: &LocalityEndpoints) -> Ordering
fn cmp(&self, other: &LocalityEndpoints) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<LocalityEndpoints> for LocalityEndpoints
impl PartialEq<LocalityEndpoints> for LocalityEndpoints
sourcefn eq(&self, other: &LocalityEndpoints) -> bool
fn eq(&self, other: &LocalityEndpoints) -> bool
sourceimpl PartialOrd<LocalityEndpoints> for LocalityEndpoints
impl PartialOrd<LocalityEndpoints> for LocalityEndpoints
sourcefn partial_cmp(&self, other: &LocalityEndpoints) -> Option<Ordering>
fn partial_cmp(&self, other: &LocalityEndpoints) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for LocalityEndpoints
impl Serialize for LocalityEndpoints
sourceimpl TryFrom<LocalityLbEndpoints> for LocalityEndpoints
impl TryFrom<LocalityLbEndpoints> for LocalityEndpoints
type Error = <Endpoint as TryFrom<LbEndpoint>>::Error
type Error = <Endpoint as TryFrom<LbEndpoint>>::Error
The type returned in the event of a conversion error.
sourcefn try_from(value: LocalityLbEndpoints) -> Result<Self, Self::Error>
fn try_from(value: LocalityLbEndpoints) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<Vec<GameServer, Global>> for LocalityEndpoints
impl TryFrom<Vec<GameServer, Global>> for LocalityEndpoints
impl Eq for LocalityEndpoints
impl StructuralEq for LocalityEndpoints
impl StructuralPartialEq for LocalityEndpoints
Auto Trait Implementations
impl RefUnwindSafe for LocalityEndpoints
impl Send for LocalityEndpoints
impl Sync for LocalityEndpoints
impl Unpin for LocalityEndpoints
impl UnwindSafe for LocalityEndpoints
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request