[][src]Struct grpcio::Metadata

#[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'.

Methods

impl Metadata
[src]

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.

Important traits for MetadataIter<'a>

Returns an iterator over the metadata entries.

Trait Implementations

impl Clone for Metadata
[src]

Performs copy-assignment from source. Read more

impl<'a> IntoIterator for &'a Metadata
[src]

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

impl Drop for Metadata
[src]

Auto Trait Implementations

impl !Send for Metadata

impl !Sync for Metadata

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]