pub struct WasmErrorParser { /* private fields */ }Expand description
A plugin-backed compilation parser, ready to be registered into the
native ParserRegistry.
Holds its own Store, so its pending multi-line state is per-instance
exactly like a native parser’s &mut self.
Implementations§
Source§impl WasmErrorParser
impl WasmErrorParser
Sourcepub fn feed(&mut self, line: &str) -> Vec<ErrorEntry>
pub fn feed(&mut self, line: &str) -> Vec<ErrorEntry>
Feed one line; return the entries it completed.
A trap poisons the parser and yields nothing from then on: the plugin stops contributing, the build keeps streaming, and the other parsers (native and plugin) carry on.
Sourcepub fn plugin(&self) -> &str
pub fn plugin(&self) -> &str
The plugin this parser came from — for logs and for
WasmErrorParserFactory’s provenance.
Trait Implementations§
Source§impl CompilationParser for WasmErrorParser
CM.6b: a plugin parser IS a [CompilationParser] — the compilation
crate’s registry, its dedup, and its ordering treat it exactly like a
native one, which is the whole point of mirroring the native trait in
the WIT world.
impl CompilationParser for WasmErrorParser
CM.6b: a plugin parser IS a [CompilationParser] — the compilation
crate’s registry, its dedup, and its ordering treat it exactly like a
native one, which is the whole point of mirroring the native trait in
the WIT world.
WasmErrorParser::reset has no counterpart here because the factory
below mints a fresh instance per run: there is never pending state to
drop. reset stays on the inherent impl because it is part of the WIT
world’s contract (a future host that pools instances needs it) and the
error_parser host test drives it.
Auto Trait Implementations§
impl !RefUnwindSafe for WasmErrorParser
impl !Sync for WasmErrorParser
impl !UnwindSafe for WasmErrorParser
impl Freeze for WasmErrorParser
impl Send for WasmErrorParser
impl Unpin for WasmErrorParser
impl UnsafeUnpin for WasmErrorParser
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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