pub struct HttpBytes {
pub status: u16,
pub headers: BTreeMap<String, String>,
pub body: Vec<u8>,
}Expand description
A binary answer (HttpTransport::fetch_bytes): the status is left to
the caller, because for a picture a 404 is an answer, not a failure.
Fields§
§status: u16§headers: BTreeMap<String, String>§body: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Forget for HttpBytes
impl Freeze for HttpBytes
impl Move for HttpBytes
impl RefUnwindSafe for HttpBytes
impl Send for HttpBytes
impl Sync for HttpBytes
impl Unpin for HttpBytes
impl UnsafeUnpin for HttpByteswhere
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for HttpBytes
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