pub enum Output {
Show 17 variants
Loaded {
steps: usize,
contracts: Vec<LoadedContract>,
},
Stop(Stop),
Message {
level: Level,
text: String,
note: Option<String>,
},
Breakpoint {
event: BreakpointEvent,
id: u32,
label: String,
},
Breakpoints {
breakpoints: Vec<BreakpointInfo>,
},
Backtrace {
warning: Option<String>,
note: Option<String>,
frames: Vec<FrameInfo>,
},
Listing {
path: String,
current_line: u64,
lines: Vec<ListedLine>,
},
Stack {
words: Vec<String>,
shown: usize,
},
Memory(MemoryInfo),
Storage {
address: Option<String>,
slots: Vec<SlotInfo>,
},
Calldata {
bytes: usize,
data: String,
},
Variables {
warning: Option<String>,
pc: u64,
locals: Vec<VariableInfo>,
unavailable: Option<String>,
state: StateInfo,
},
Variable {
warning: Option<String>,
variable: VariableInfo,
},
Resources {
contracts: Vec<ResourceInfo>,
json: bool,
},
Help {
lines: Vec<String>,
},
Tui,
Quit,
}Expand description
One item of a command’s answer.
Variants§
Loaded
What was loaded, said once when a session starts.
Fields
§
contracts: Vec<LoadedContract>The contracts whose sources are loaded, name and address.
Stop(Stop)
Where the debugger stopped, and why.
Message
A one-line message, with an optional note under it.
Breakpoint
A breakpoint was set or cleared.
Breakpoints
Fields
§
breakpoints: Vec<BreakpointInfo>Backtrace
Fields
Listing
Stack
Fields
Memory(MemoryInfo)
Storage
Calldata
Variables
The variables in scope, and the state variables.
Variable
One variable, from print.
Resources
The contracts whose debug resources are loaded.
Fields
§
contracts: Vec<ResourceInfo>Help
Tui
The user asked for the full-screen view.
Quit
The user asked to leave.
Trait Implementations§
impl Eq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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