pub struct SseDecodeOptions {
pub json_mode: SseJsonMode,
pub max_line_bytes: usize,
pub max_frame_bytes: usize,
}Expand description
SSE decode options attached to one streaming response body.
Fields§
§json_mode: SseJsonModeDefault JSON decoding mode used by stream JSON helpers.
max_line_bytes: usizeDefault maximum bytes allowed for one SSE line.
max_frame_bytes: usizeDefault maximum bytes allowed for one SSE frame.
Implementations§
Source§impl SseDecodeOptions
impl SseDecodeOptions
Sourcepub fn new(
json_mode: SseJsonMode,
max_line_bytes: usize,
max_frame_bytes: usize,
) -> Self
pub fn new( json_mode: SseJsonMode, max_line_bytes: usize, max_frame_bytes: usize, ) -> Self
Creates options and normalizes line/frame limits to at least 1 byte.
Trait Implementations§
Source§impl Clone for SseDecodeOptions
impl Clone for SseDecodeOptions
Source§fn clone(&self) -> SseDecodeOptions
fn clone(&self) -> SseDecodeOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 SseDecodeOptions
impl Debug for SseDecodeOptions
Source§impl Default for SseDecodeOptions
impl Default for SseDecodeOptions
Source§impl PartialEq for SseDecodeOptions
impl PartialEq for SseDecodeOptions
impl Copy for SseDecodeOptions
impl Eq for SseDecodeOptions
impl StructuralPartialEq for SseDecodeOptions
Auto Trait Implementations§
impl Freeze for SseDecodeOptions
impl RefUnwindSafe for SseDecodeOptions
impl Send for SseDecodeOptions
impl Sync for SseDecodeOptions
impl Unpin for SseDecodeOptions
impl UnsafeUnpin for SseDecodeOptions
impl UnwindSafe for SseDecodeOptions
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.