Struct tvix_eval::observer::NoOpObserver
source · pub struct NoOpObserver {}
Trait Implementations§
source§impl CompilerObserver for NoOpObserver
impl CompilerObserver for NoOpObserver
source§fn observe_compiled_toplevel(&mut self, _: &Rc<Lambda>)
fn observe_compiled_toplevel(&mut self, _: &Rc<Lambda>)
Called when the compiler finishes compilation of the top-level
of an expression (usually the root Nix expression of a file).
source§fn observe_compiled_lambda(&mut self, _: &Rc<Lambda>)
fn observe_compiled_lambda(&mut self, _: &Rc<Lambda>)
Called when the compiler finishes compilation of a
user-defined function. Read more
source§fn observe_compiled_thunk(&mut self, _: &Rc<Lambda>)
fn observe_compiled_thunk(&mut self, _: &Rc<Lambda>)
Called when the compiler finishes compilation of a thunk.
source§impl Default for NoOpObserver
impl Default for NoOpObserver
source§fn default() -> NoOpObserver
fn default() -> NoOpObserver
Returns the “default value” for a type. Read more
source§impl RuntimeObserver for NoOpObserver
impl RuntimeObserver for NoOpObserver
source§fn observe_enter_call_frame(
&mut self,
_arg_count: usize,
_: &Rc<Lambda>,
_call_depth: usize,
)
fn observe_enter_call_frame( &mut self, _arg_count: usize, _: &Rc<Lambda>, _call_depth: usize, )
Called when the runtime enters a new call frame.
source§fn observe_exit_call_frame(&mut self, _frame_at: usize, _stack: &[Value])
fn observe_exit_call_frame(&mut self, _frame_at: usize, _stack: &[Value])
Called when the runtime exits a call frame.
source§fn observe_suspend_call_frame(&mut self, _frame_at: usize, _stack: &[Value])
fn observe_suspend_call_frame(&mut self, _frame_at: usize, _stack: &[Value])
Called when the runtime suspends a call frame.
source§fn observe_enter_generator(
&mut self,
_frame_at: usize,
_name: &str,
_stack: &[Value],
)
fn observe_enter_generator( &mut self, _frame_at: usize, _name: &str, _stack: &[Value], )
Called when the runtime enters a generator frame.
source§fn observe_exit_generator(
&mut self,
_frame_at: usize,
_name: &str,
_stack: &[Value],
)
fn observe_exit_generator( &mut self, _frame_at: usize, _name: &str, _stack: &[Value], )
Called when the runtime exits a generator frame.
source§fn observe_suspend_generator(
&mut self,
_frame_at: usize,
_name: &str,
_stack: &[Value],
)
fn observe_suspend_generator( &mut self, _frame_at: usize, _name: &str, _stack: &[Value], )
Called when the runtime suspends a generator frame.
source§fn observe_generator_request(&mut self, _name: &str, _msg: &VMRequest)
fn observe_generator_request(&mut self, _name: &str, _msg: &VMRequest)
Called when a generator requests an action from the VM.
source§fn observe_tail_call(&mut self, _frame_at: usize, _: &Rc<Lambda>)
fn observe_tail_call(&mut self, _frame_at: usize, _: &Rc<Lambda>)
Called when the runtime replaces the current call frame for a
tail call.
source§fn observe_enter_builtin(&mut self, _name: &'static str)
fn observe_enter_builtin(&mut self, _name: &'static str)
Called when the runtime enters a builtin.
source§fn observe_exit_builtin(&mut self, _name: &'static str, _stack: &[Value])
fn observe_exit_builtin(&mut self, _name: &'static str, _stack: &[Value])
Called when the runtime exits a builtin.
Auto Trait Implementations§
impl Freeze for NoOpObserver
impl RefUnwindSafe for NoOpObserver
impl Send for NoOpObserver
impl Sync for NoOpObserver
impl Unpin for NoOpObserver
impl UnwindSafe for NoOpObserver
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more