Struct process_mining::StreamingXESParser
source · pub struct StreamingXESParser<'a> { /* private fields */ }Expand description
Streaming XES Parser over Traces
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:LogDatawill be at most emitted once at the beginning (it is emitted before parsing the first trace)XESNextStreamElement:Tracewill be emitted for every trace found in the underlying XESXESNextStreamElement:Errorwill 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> Freeze for StreamingXESParser<'a>
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
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