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 Freeze for ListenAddr
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::Request
Creates 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>
.