pub enum LoggerEvent {
CompileSuccess {
fn_loc: Option<LoggerSourceLocation>,
fn_name: Option<String>,
memo_slots: u32,
memo_blocks: u32,
memo_values: u32,
pruned_memo_blocks: u32,
pruned_memo_values: u32,
},
CompileError {
detail: CompilerErrorDetailInfo,
fn_loc: Option<LoggerSourceLocation>,
},
CompileErrorWithLoc {
fn_loc: LoggerSourceLocation,
detail: CompilerErrorDetailInfo,
},
CompileSkip {
fn_loc: Option<LoggerSourceLocation>,
reason: String,
loc: Option<LoggerSourceLocation>,
},
CompileUnexpectedThrow {
fn_loc: Option<LoggerSourceLocation>,
data: String,
},
PipelineError {
fn_loc: Option<LoggerSourceLocation>,
data: String,
},
}Expand description
Logger events emitted during compilation. These are returned to JS for the logger callback.
Variants§
CompileSuccess
Fields
§
fn_loc: Option<LoggerSourceLocation>CompileError
CompileErrorWithLoc
Same as CompileError but serializes fnLoc before detail (matching TS program.ts output)
CompileSkip
CompileUnexpectedThrow
PipelineError
Trait Implementations§
Source§impl Clone for LoggerEvent
impl Clone for LoggerEvent
Source§fn clone(&self) -> LoggerEvent
fn clone(&self) -> LoggerEvent
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 LoggerEvent
impl Debug for LoggerEvent
Auto Trait Implementations§
impl Freeze for LoggerEvent
impl RefUnwindSafe for LoggerEvent
impl Send for LoggerEvent
impl Sync for LoggerEvent
impl Unpin for LoggerEvent
impl UnsafeUnpin for LoggerEvent
impl UnwindSafe for LoggerEvent
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