pub enum StreamItem {
Head {
status: u16,
headers: BTreeMap<String, String>,
},
Chunk {
seq: u64,
data: String,
},
End,
Error(String),
}Expand description
One item of a streamed browser response, derived from a BrowserFrame when
the registered waiter is a stream.
Variants§
Head
Stream head: status and headers, before any body bytes.
Chunk
A base64-encoded body chunk.
End
The stream terminated normally.
Error(String)
The browser reported an error (before or mid-stream).
Trait Implementations§
Source§impl Clone for StreamItem
impl Clone for StreamItem
Source§fn clone(&self) -> StreamItem
fn clone(&self) -> StreamItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamItem
impl Debug for StreamItem
impl Eq for StreamItem
Source§impl PartialEq for StreamItem
impl PartialEq for StreamItem
Source§fn eq(&self, other: &StreamItem) -> bool
fn eq(&self, other: &StreamItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamItem
Auto Trait Implementations§
impl Freeze for StreamItem
impl RefUnwindSafe for StreamItem
impl Send for StreamItem
impl Sync for StreamItem
impl Unpin for StreamItem
impl UnsafeUnpin for StreamItem
impl UnwindSafe for StreamItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.