Struct envoy_sdk::host::stream_info::ResponseInfo[][src]

pub struct ResponseInfo<'a> { /* fields omitted */ }

Provides access to response properties.

Implementations

impl<'a> ResponseInfo<'a>[src]

pub fn header<K>(&self, name: K) -> Result<Option<ByteString>> where
    K: AsRef<str>, 
[src]

Returns response header by name.

pub fn trailer<K>(&self, name: K) -> Result<Option<ByteString>> where
    K: AsRef<str>, 
[src]

Returns response trailer by name.

pub fn status_code(&self) -> Result<Option<u16>>[src]

Returns response HTTP status code.

pub fn size(&self) -> Result<Option<u64>>[src]

Returns size of the response body.

pub fn total_size(&self) -> Result<Option<u64>>[src]

Returns total size of the response including the approximate uncompressed size of the headers and the trailers.

pub fn flags(&self) -> Result<Option<ResponseFlags>>[src]

Returns additional details about the response beyond the standard response code.

pub fn grpc_status(&self) -> Result<Option<i32>>[src]

Returns response gRPC status code.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ResponseInfo<'a>

impl<'a> !Send for ResponseInfo<'a>

impl<'a> !Sync for ResponseInfo<'a>

impl<'a> Unpin for ResponseInfo<'a>

impl<'a> !UnwindSafe for ResponseInfo<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.