pub enum ContentType {
Show 13 variants
Workers(WorkerInfos),
Metrics(AggregatedMetrics),
WorkerResponses(WorkerResponses),
Event(Event),
FrontendList(ListedFrontends),
ListenersList(ListenersList),
WorkerMetrics(WorkerMetrics),
AvailableMetrics(AvailableMetrics),
Clusters(ClusterInformations),
ClusterHashes(ClusterHashes),
CertificatesByAddress(ListOfCertificatesByAddress),
CertificatesWithFingerprints(CertificatesWithFingerprints),
RequestCounts(RequestCounts),
}
Variants§
Workers(WorkerInfos)
a list of workers, with ids, pids, statuses
Metrics(AggregatedMetrics)
aggregated metrics of main process and workers
WorkerResponses(WorkerResponses)
a collection of worker responses to the same request
Event(Event)
a proxy event
FrontendList(ListedFrontends)
a filtered list of frontend
ListenersList(ListenersList)
all listeners
WorkerMetrics(WorkerMetrics)
contains proxy & cluster metrics
AvailableMetrics(AvailableMetrics)
Lists of metrics that are available
Clusters(ClusterInformations)
a list of cluster informations
ClusterHashes(ClusterHashes)
collection of hashes of cluster information,
CertificatesByAddress(ListOfCertificatesByAddress)
a list of certificates summaries, grouped by socket address
CertificatesWithFingerprints(CertificatesWithFingerprints)
a map of complete certificates using fingerprints as key
RequestCounts(RequestCounts)
a census of the types of requests received since startup,
Implementations§
source§impl ContentType
impl ContentType
sourcepub fn merge<B>(
field: &mut Option<ContentType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<ContentType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for ContentType
impl Clone for ContentType
source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
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 ContentType
impl Debug for ContentType
source§impl<'de> Deserialize<'de> for ContentType
impl<'de> Deserialize<'de> for ContentType
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 From<ContentType> for ResponseContent
impl From<ContentType> for ResponseContent
source§fn from(value: ContentType) -> Self
fn from(value: ContentType) -> Self
Converts to this type from the input type.
source§impl Hash for ContentType
impl Hash for ContentType
source§impl Ord for ContentType
impl Ord for ContentType
source§fn cmp(&self, other: &ContentType) -> Ordering
fn cmp(&self, other: &ContentType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ContentType
impl PartialEq for ContentType
source§fn eq(&self, other: &ContentType) -> bool
fn eq(&self, other: &ContentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContentType
impl PartialOrd for ContentType
source§fn partial_cmp(&self, other: &ContentType) -> Option<Ordering>
fn partial_cmp(&self, other: &ContentType) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for ContentType
impl Serialize for ContentType
impl Eq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.