pub struct StreamingValidator { /* private fields */ }Expand description
Streaming UTF-8 validator for fragmented text frames.
WebSocket spec §6.2 may split text frames into multiple DATA frames (FIN=0) — the UTF-8 stream may be interrupted in the middle of a multi-byte sequence. This validator maintains a small internal buffer for the codepoint that has been started.
Implementations§
Trait Implementations§
Source§impl Debug for StreamingValidator
impl Debug for StreamingValidator
Source§impl Default for StreamingValidator
impl Default for StreamingValidator
Source§fn default() -> StreamingValidator
fn default() -> StreamingValidator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingValidator
impl RefUnwindSafe for StreamingValidator
impl Send for StreamingValidator
impl Sync for StreamingValidator
impl Unpin for StreamingValidator
impl UnsafeUnpin for StreamingValidator
impl UnwindSafe for StreamingValidator
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