pub struct GeminiParser { /* private fields */ }Expand description
Gemini event parser
Implementations§
Source§impl GeminiParser
impl GeminiParser
Sourcepub fn printer(&self) -> SharedPrinter
pub fn printer(&self) -> SharedPrinter
Get a shared reference to the printer.
This allows tests, monitoring, and other code to access the printer after parsing to verify output content, check for duplicates, or capture output for analysis.
§Returns
A clone of the shared printer reference (Rc<RefCell<dyn Printable>>)
Sourcepub fn streaming_metrics(&self) -> StreamingQualityMetrics
pub fn streaming_metrics(&self) -> StreamingQualityMetrics
Get streaming quality metrics from the current session.
This provides insight into the deduplication and streaming quality of the parsing session.
§Returns
A copy of the streaming quality metrics from the internal StreamingSession.
Auto Trait Implementations§
impl !Freeze for GeminiParser
impl !RefUnwindSafe for GeminiParser
impl !Send for GeminiParser
impl !Sync for GeminiParser
impl Unpin for GeminiParser
impl !UnwindSafe for GeminiParser
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more