Trait twitch_api::client::ResponseExt
source · [−]pub trait ResponseExt {
type Error;
fn into_response_vec<'a>(
self
) -> BoxedFuture<'a, Result<Response<Vec<u8>>, Self::Error>>;
fn into_response_bytes<'a>(
self
) -> BoxedFuture<'a, Result<Response<Bytes>, Self::Error>>;
}
Available on crate feature
client
only.Expand description
Extension trait for Response
Required Associated Types
Required Methods
sourcefn into_response_vec<'a>(
self
) -> BoxedFuture<'a, Result<Response<Vec<u8>>, Self::Error>>
fn into_response_vec<'a>(
self
) -> BoxedFuture<'a, Result<Response<Vec<u8>>, Self::Error>>
Return the body as a vector of bytes
sourcefn into_response_bytes<'a>(
self
) -> BoxedFuture<'a, Result<Response<Bytes>, Self::Error>>
fn into_response_bytes<'a>(
self
) -> BoxedFuture<'a, Result<Response<Bytes>, Self::Error>>
Return the body as a Bytes