pub struct InfoResponseParser(/* private fields */);Expand description
An InfoResponse body parser.
Implementations§
Source§impl InfoResponseParser
impl InfoResponseParser
Sourcepub async fn parse_body(self) -> Result<InfoResponse>
pub async fn parse_body(self) -> Result<InfoResponse>
Parses the internal response body to retrieve an InfoResponse.
§Errors
If the response body does not contain a valid InfoResponse, 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 InfoResponseParser
impl !RefUnwindSafe for InfoResponseParser
impl Send for InfoResponseParser
impl Sync for InfoResponseParser
impl Unpin for InfoResponseParser
impl !UnwindSafe for InfoResponseParser
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