pub struct OkResponseParser(/* private fields */);Expand description
An OkResponse body parser.
Implementations§
Source§impl OkResponseParser
impl OkResponseParser
Sourcepub async fn parse_body(self) -> Result<OkResponse>
pub async fn parse_body(self) -> Result<OkResponse>
Parses the internal response body to retrieve an OkResponse.
§Errors
If the response body does not contain a valid OkResponse, a
parsing error will be raised. This may occur due to an incorrect format
or because the binary data contains syntactic or semantic errors.
Auto Trait Implementations§
impl Freeze for OkResponseParser
impl !RefUnwindSafe for OkResponseParser
impl Send for OkResponseParser
impl Sync for OkResponseParser
impl Unpin for OkResponseParser
impl !UnwindSafe for OkResponseParser
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