#[non_exhaustive]pub enum AgentEvent<'a> {
ProcessCreated {
pid: u32,
process: *mut c_void,
target_path: &'a str,
target_bytes: &'a [u8],
},
DllLoaded {
name: &'a str,
base: usize,
},
InitialBreakpoint,
ThreadCreated {
tid: u32,
handle: *mut c_void,
},
Finished,
ThreadFinished {
tid: u32,
},
DebugString {
string: &'a str,
},
AgentInitialized {
target_path: &'a str,
},
AgentFinished,
Unknown,
}Expand description
Events emitted by the agent during execution
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ProcessCreated
A Process was created
Fields
DllLoaded
A DLL has been loaded
InitialBreakpoint
First breakpoint to be triggered
ThreadCreated
A Thread has been created
Finished
Process finished executing
ThreadFinished
Thread finished executing
DebugString
Process emitted a debug string
AgentInitialized
Cradle agent has finished initializing
AgentFinished
Cradle agent has finished executing
Unknown
Unknown event
Auto Trait Implementations§
impl<'a> !Send for AgentEvent<'a>
impl<'a> !Sync for AgentEvent<'a>
impl<'a> Freeze for AgentEvent<'a>
impl<'a> RefUnwindSafe for AgentEvent<'a>
impl<'a> Unpin for AgentEvent<'a>
impl<'a> UnsafeUnpin for AgentEvent<'a>
impl<'a> UnwindSafe for AgentEvent<'a>
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