Struct process_mining::StreamingXESParser
source · pub struct StreamingXESParser<'a> { /* private fields */ }
Expand description
Streaming XES Parser over Trace
s
Can be initiated using any of the streaming functions (e.g. stream_xes_from_path
, stream_xes_slice
, …)
Implementations§
source§impl<'a> StreamingXESParser<'a>
impl<'a> StreamingXESParser<'a>
sourcepub fn next_trace(&mut self) -> Option<XESNextStreamElement>
pub fn next_trace(&mut self) -> Option<XESNextStreamElement>
Try to parse a next XESNextStreamElement
from the current position
Returns None
if it encountered an error previously or there are no more traces left
Otherwise returns Some
wrapping a XESNextStreamElement
XESNextStreamElement:LogData
will be at most emitted once at the beginning (it is emitted before parsing the first trace)XESNextStreamElement:Trace
will be emitted for every trace found in the underlying XESXESNextStreamElement:Error
will be emitted at most once and will end the iterator (i.e., it will only return None afterwards)
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StreamingXESParser<'a>
impl<'a> !Send for StreamingXESParser<'a>
impl<'a> !Sync for StreamingXESParser<'a>
impl<'a> Unpin for StreamingXESParser<'a>
impl<'a> !UnwindSafe for StreamingXESParser<'a>
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