pub struct QosHttpResponse { /* private fields */ }Expand description
Reqwest response that keeps the QoS request permit until the body is consumed.
Implementations§
Source§impl QosHttpResponse
impl QosHttpResponse
pub fn unmetered(inner: Response) -> Self
pub fn status(&self) -> StatusCode
pub fn content_length(&self) -> Option<u64>
pub async fn json<T>(self) -> Result<T, Error>where
T: DeserializeOwned,
pub async fn text(self) -> Result<String, Error>
pub async fn bytes(self) -> Result<Vec<u8>, Error>
pub async fn chunk(&mut self) -> Result<Option<Vec<u8>>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for QosHttpResponse
impl !UnwindSafe for QosHttpResponse
impl Freeze for QosHttpResponse
impl Send for QosHttpResponse
impl Sync for QosHttpResponse
impl Unpin for QosHttpResponse
impl UnsafeUnpin for QosHttpResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more