#[repr(C)]
pub struct Metadata(_);
A collection of metadata entries that can be exchanged during a call.
gRPC supports these types of metadata:
-
Request headers
They are sent by the client at the beginning of a remote call before
any request messages are sent.
-
Response headers
They are sent by the server at the beginning of a remote call handler
before any response messages are sent.
-
Response trailers
They are sent by the server at the end of a remote call along with
resulting call status.
Metadata value can be ascii string or bytes. They are distinguish by the
key suffix, key of bytes value should have suffix '-bin'.
Returns the count of metadata entries.
Returns true if there is no metadata entries.
Returns the metadata entry at the index
.
None
is returned if out of bound.
Returns an iterator over the metadata entries.
Executes the destructor for this type. Read more
Performs copy-assignment from source
. Read more
type Owned = T
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
type Error = !
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static