Skip to main content

AgentEvent

Enum AgentEvent 

Source
#[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

§pid: u32

The PID of the created process

§process: *mut c_void

The process handle

§target_path: &'a str

Path of the process

§target_bytes: &'a [u8]

Bytes of the process

§

DllLoaded

A DLL has been loaded

Fields

§name: &'a str

Name of the DLL

§base: usize

Base address

§

InitialBreakpoint

First breakpoint to be triggered

§

ThreadCreated

A Thread has been created

Fields

§tid: u32

Thread ID

§handle: *mut c_void

Thread handle

§

Finished

Process finished executing

§

ThreadFinished

Thread finished executing

Fields

§tid: u32

Thread ID

§

DebugString

Process emitted a debug string

Fields

§string: &'a str

Debug string value

§

AgentInitialized

Cradle agent has finished initializing

Fields

§target_path: &'a str

Target process path

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.