pub enum LogEvent {
Invoke {
program_id: String,
depth: u32,
},
Consumed {
program_id: String,
used: u64,
budget: u64,
},
Success {
program_id: String,
},
Failed {
program_id: String,
reason: String,
},
Log {
message: String,
},
ScopeBegin {
name: String,
cu: Option<u64>,
},
ScopeEnd {
name: String,
cu: Option<u64>,
},
ScopePoint {
name: String,
cu: Option<u64>,
},
Raw(String),
}Expand description
One recognised (or preserved) log line.
Variants§
Invoke
Program <id> invoke [<depth>]
Consumed
Program <id> consumed <used> of <budget> compute units
Fields
Success
Program <id> success
Failed
Program <id> failed: <reason> (or Program failed to complete).
Fields
Log
A Program log: message that is not a profiler marker.
ScopeBegin
A balanced-scope begin marker.
ScopeEnd
A scope end marker.
ScopePoint
A point-in-time marker.
Raw(String)
Any line that could not be classified, preserved verbatim.
Trait Implementations§
impl Eq for LogEvent
impl StructuralPartialEq for LogEvent
Auto Trait Implementations§
impl Freeze for LogEvent
impl RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl UnsafeUnpin for LogEvent
impl UnwindSafe for LogEvent
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