pub struct BinaryResponse(pub Vec<u8>);
Available on crate features
rest-client
or rpc-client
only.Expand description
An HTTP response body in binary format.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
Source§impl TryFrom<Vec<u8>> for BinaryResponse
Interprets bytes from an HTTP response body as binary data.
impl TryFrom<Vec<u8>> for BinaryResponse
Interprets bytes from an HTTP response body as binary data.
Source§impl TryInto<Block> for BinaryResponse
Parses binary data as a block.
impl TryInto<Block> for BinaryResponse
Parses binary data as a block.
Auto Trait Implementations§
impl Freeze for BinaryResponse
impl RefUnwindSafe for BinaryResponse
impl Send for BinaryResponse
impl Sync for BinaryResponse
impl Unpin for BinaryResponse
impl UnwindSafe for BinaryResponse
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