Struct envoy_sdk::host::stream_info::ResponseInfo [−][src]
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]
K: AsRef<str>,
Returns response header by name.
pub fn trailer<K>(&self, name: K) -> Result<Option<ByteString>> where
K: AsRef<str>,
[src]
K: AsRef<str>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,