pub struct SseSplitter { /* private fields */ }Expand description
One bounded partial SSE block. Line endings on the wire are LF.
Implementations§
Source§impl SseSplitter
impl SseSplitter
Sourcepub fn new(max_block_len: usize) -> Self
pub fn new(max_block_len: usize) -> Self
Start a splitter with the same limit used for a response DATA record.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SseSplitter
impl RefUnwindSafe for SseSplitter
impl Send for SseSplitter
impl Sync for SseSplitter
impl Unpin for SseSplitter
impl UnsafeUnpin for SseSplitter
impl UnwindSafe for SseSplitter
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