Enum apollo_router::ListenAddr
source · pub enum ListenAddr {
SocketAddr(SocketAddr),
UnixSocket(PathBuf),
}Expand description
Listening address.
Variants§
Trait Implementations§
source§impl Clone for ListenAddr
impl Clone for ListenAddr
source§fn clone(&self) -> ListenAddr
fn clone(&self) -> ListenAddr
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 Debug for ListenAddr
impl Debug for ListenAddr
source§impl<'de> Deserialize<'de> for ListenAddr
impl<'de> Deserialize<'de> for ListenAddr
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 Display for ListenAddr
impl Display for ListenAddr
source§impl From<Either<SocketAddr, SocketAddr>> for ListenAddr
impl From<Either<SocketAddr, SocketAddr>> for ListenAddr
source§fn from(addr: Either<SocketAddr, SocketAddr>) -> Self
fn from(addr: Either<SocketAddr, SocketAddr>) -> Self
Converts to this type from the input type.
source§impl From<SocketAddr> for ListenAddr
impl From<SocketAddr> for ListenAddr
source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
source§impl Hash for ListenAddr
impl Hash for ListenAddr
source§impl Into<Value> for ListenAddr
impl Into<Value> for ListenAddr
source§impl JsonSchema for ListenAddr
impl JsonSchema for ListenAddr
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. 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 ListenAddr
impl PartialEq for ListenAddr
source§fn eq(&self, other: &ListenAddr) -> bool
fn eq(&self, other: &ListenAddr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ListenAddr
impl Serialize for ListenAddr
impl Eq for ListenAddr
impl StructuralPartialEq for ListenAddr
Auto Trait Implementations§
impl RefUnwindSafe for ListenAddr
impl Send for ListenAddr
impl Sync for ListenAddr
impl Unpin for ListenAddr
impl UnwindSafe for ListenAddr
Blanket Implementations§
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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> 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> 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::RequestCreates a shared type from an unshared type.
source§impl<T> Serializable for Twhere
T: Serialize,
impl<T> Serializable for Twhere
T: Serialize,
source§impl<T> StdoutFmt for Twhere
T: Display,
impl<T> StdoutFmt for Twhere
T: Display,
source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.