pub struct Proc {
pub id: ProcId,
pub entry: *mut ProcEntry,
pub path: String,
}
Expand description
Used to hook and call procs.
Finds the first proc with the given path
Finds the n’th re-defined proc with the given path
Calls a global proc with the given arguments.
This function is equivalent to return do_explode(3)
in DM.
ⓘ#[hook("/proc/my_proc")]
fn my_proc_hook() -> DMResult {
let proc = Proc::find("/proc/do_explode").unwrap();
proc.call(&[&Value::from(3.0)])
}
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.