pub struct StopWindow {
pub matched: Option<String>,
/* private fields */
}Expand description
Sliding window that recognises a client stop sequence inside the streamed text and keeps it from reaching the client.
A stop sequence can straddle delta boundaries, so the last max_len - 1
characters of the open block are withheld until either more text arrives
or the block closes. Only ever constructed when the request carried stop
sequences — the common path never allocates or copies.
Fields§
§matched: Option<String>the sequence that fired, once one has
Trait Implementations§
Source§impl Debug for StopWindow
impl Debug for StopWindow
Source§impl Default for StopWindow
impl Default for StopWindow
Source§fn default() -> StopWindow
fn default() -> StopWindow
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StopWindow
impl RefUnwindSafe for StopWindow
impl Send for StopWindow
impl Sync for StopWindow
impl Unpin for StopWindow
impl UnsafeUnpin for StopWindow
impl UnwindSafe for StopWindow
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