pub enum ProcessResult<Handle> {
Continue,
Suspend,
Script(Handle),
EncodingIndicator(StrTendril),
}Expand description
The result of invoking the tokenizer once.
Variants§
Continue
The tokenizer should be re-invoked immediately.
Suspend
The tokenizer has not finished, but it needs to wait for more input to arrive before it can continue.
Script(Handle)
The tokenizer was blocked by a <script>.
This <script> needs to be executed before tokenization
can continue, as it might invoke document.write.
EncodingIndicator(StrTendril)
The tokenizer was blocked because it found a <meta charset> tag.
Such tags may force the user agent to re-parse the document with the new encoding, but non-conformant implementations can reasonably treat this as Self::Continue.
Auto Trait Implementations§
impl<Handle> !Freeze for ProcessResult<Handle>
impl<Handle> !RefUnwindSafe for ProcessResult<Handle>
impl<Handle> !Send for ProcessResult<Handle>
impl<Handle> !Sync for ProcessResult<Handle>
impl<Handle> Unpin for ProcessResult<Handle>where
Handle: Unpin,
impl<Handle> UnwindSafe for ProcessResult<Handle>where
Handle: UnwindSafe,
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