pub struct RolloutJsonlParser;Implementations§
Source§impl RolloutJsonlParser
impl RolloutJsonlParser
pub fn new() -> Self
Sourcepub fn parse_line(
&mut self,
line: &str,
) -> Result<Option<RolloutEvent>, RolloutJsonlError>
pub fn parse_line( &mut self, line: &str, ) -> Result<Option<RolloutEvent>, RolloutJsonlError>
Parses a single logical JSONL line.
- Returns
Ok(None)for empty / whitespace-only lines. - Otherwise returns
Ok(Some(RolloutEvent))on success. - Returns
Err(RolloutJsonlError)on JSON parse / typed parse failures.
Trait Implementations§
Source§impl Clone for RolloutJsonlParser
impl Clone for RolloutJsonlParser
Source§fn clone(&self) -> RolloutJsonlParser
fn clone(&self) -> RolloutJsonlParser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RolloutJsonlParser
impl Debug for RolloutJsonlParser
Source§impl Default for RolloutJsonlParser
impl Default for RolloutJsonlParser
Source§fn default() -> RolloutJsonlParser
fn default() -> RolloutJsonlParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RolloutJsonlParser
impl RefUnwindSafe for RolloutJsonlParser
impl Send for RolloutJsonlParser
impl Sync for RolloutJsonlParser
impl Unpin for RolloutJsonlParser
impl UnsafeUnpin for RolloutJsonlParser
impl UnwindSafe for RolloutJsonlParser
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