pub struct Recorder { /* private fields */ }Expand description
Records method calls to build an IL Plan
Implementations§
Source§impl Recorder
impl Recorder
Sourcepub fn capture(&self, name: &str, cap_id: CapId) -> RecordedCapability
pub fn capture(&self, name: &str, cap_id: CapId) -> RecordedCapability
Record a capability capture
Sourcepub fn call(
&self,
target: Source,
method: &str,
args: Vec<Source>,
) -> RecordedResult
pub fn call( &self, target: Source, method: &str, args: Vec<Source>, ) -> RecordedResult
Record a method call
Sourcepub fn object(&self, fields: BTreeMap<String, Source>) -> RecordedResult
pub fn object(&self, fields: BTreeMap<String, Source>) -> RecordedResult
Record object construction
Sourcepub fn array(&self, items: Vec<Source>) -> RecordedResult
pub fn array(&self, items: Vec<Source>) -> RecordedResult
Record array construction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnwindSafe for Recorder
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