pub struct TaskOutputEvent {
pub data: Vec<DataEvent>,
pub parser_task: Vec<TaskParserEvent>,
pub error_task: Option<TaskErrorEvent>,
pub stop: Option<bool>,
}Expand description
Parser output envelope.
Contains parsed data, next task, error task, and control flags.
Fields§
§data: Vec<DataEvent>Parsed data list.
parser_task: Vec<TaskParserEvent>Generated next parser tasks.
error_task: Option<TaskErrorEvent>Generated error task (optional).
stop: Option<bool>Stop flag (optional).
Implementations§
Source§impl TaskOutputEvent
impl TaskOutputEvent
pub fn with_data(self, data: Vec<impl StoreTrait>) -> Self
pub fn with_task(self, task: TaskParserEvent) -> Self
pub fn with_tasks(self, tasks: Vec<TaskParserEvent>) -> Self
pub fn with_error(self, error: TaskErrorEvent) -> Self
Trait Implementations§
Source§impl Clone for TaskOutputEvent
impl Clone for TaskOutputEvent
Source§fn clone(&self) -> TaskOutputEvent
fn clone(&self) -> TaskOutputEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaskOutputEvent
impl Debug for TaskOutputEvent
Source§impl Default for TaskOutputEvent
impl Default for TaskOutputEvent
Source§fn default() -> TaskOutputEvent
fn default() -> TaskOutputEvent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaskOutputEvent
impl RefUnwindSafe for TaskOutputEvent
impl Send for TaskOutputEvent
impl Sync for TaskOutputEvent
impl Unpin for TaskOutputEvent
impl UnsafeUnpin for TaskOutputEvent
impl UnwindSafe for TaskOutputEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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