Expand description
Contains data structures and utilities for handling gRPC custom metadata.
Modules§
- errors
- The metadata::errors module contains types for errors that can occur while handling gRPC custom metadata.
Structs§
- GetAll
- A view to all values stored in a single entry.
- Iter
MetadataMap
entry iterator.- IterMut
MetadataMap
entry iterator.- Keys
- An iterator over
MetadataMap
keys. - Metadata
Key - Represents a custom metadata field name.
- Metadata
Map - A set of gRPC custom metadata entries.
- Metadata
Value - Represents a custom metadata field value.
- Occupied
Entry - A view into a single occupied location in a
MetadataMap
. - Vacant
Entry - A view into a single empty location in a
MetadataMap
. - Value
Drain - A drain iterator of all values associated with a single metadata key.
- Value
Iter - An iterator of all values associated with a single metadata key.
- Values
MetadataMap
value iterator.- Values
Mut MetadataMap
value iterator.
Enums§
- Ascii
- gRPC metadata values can be either ASCII strings or binary. Note that only
visible ASCII characters (32-127) are permitted.
This type should never be instantiated – in fact, it’s impossible
to, because there’s no variants to instantiate. Instead, it’s just used as
a type parameter for
MetadataKey
andMetadataValue
. - Binary
- gRPC metadata values can be either ASCII strings or binary.
This type should never be instantiated – in fact, it’s impossible
to, because there’s no variants to instantiate. Instead, it’s just used as
a type parameter for
MetadataKey
andMetadataValue
. - Entry
- A view into a single location in a
MetadataMap
, which may be vacant or occupied. - KeyAnd
MutValue Ref - Reference to a key and an associated value in a
MetadataMap
. It can point to either an ascii or a binary (“*-bin”) key. - KeyAnd
Value Ref - Reference to a key and an associated value in a
MetadataMap
. It can point to either an ascii or a binary (“*-bin”) key. - KeyRef
- Reference to a key in a
MetadataMap
. It can point to either an ascii or a binary (“*-bin”) key. - Value
Ref - Reference to a value in a
MetadataMap
. It can point to either an ascii or a binary (“*-bin” key) value. - Value
RefMut - Reference to a value in a
MetadataMap
. It can point to either an ascii or a binary (“*-bin” key) value.
Constants§
- GRPC_
CONTENT_ TYPE - HTTP Header
content-type
value for gRPC calls.
Type Aliases§
- Ascii
Metadata Key - An ascii metadata key.
- Ascii
Metadata Value - An ascii metadata value.
- Binary
Metadata Key - A binary metadata key.
- Binary
Metadata Value - A binary metadata value.