Skip to main content

DynamicTraceReference

Trait DynamicTraceReference 

Source
pub trait DynamicTraceReference:
    ModuleReference
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn origin_fn_name(&self) -> RcStr;
}
Expand description

A ModuleReference created by tracing a dynamic filesystem access (e.g. fs.readFileSync, path.join) for the purpose of Node File Tracing.

Required Methods§

Source

fn origin_fn_name(&self) -> RcStr

The name of the function/call that created this reference (e.g. fs.readFileSync). Used to name the offending call in tracing diagnostics so the suggested fix refers to the actual call rather than an example.

Trait Implementations§

Source§

impl Dynamic<Box<dyn DynamicTraceReference>> for Box<dyn DynamicTraceReference>

Source§

impl Dynamic<Box<dyn ModuleReference>> for Box<dyn DynamicTraceReference>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn DynamicTraceReference>

Available on debug-assertions enabled only.
Source§

impl TraitVtablePrototype for Box<dyn DynamicTraceReference>

Source§

const LEN: usize = 0usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl Upcast<Box<dyn DynamicTraceReference>> for Box<dyn DynamicTraceReference>

Source§

impl Upcast<Box<dyn ModuleReference>> for Box<dyn DynamicTraceReference>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn DynamicTraceReference>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ModuleReference>> for Box<dyn DynamicTraceReference>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn DynamicTraceReference>

Available on debug-assertions enabled only.
Source§

impl VcValueTrait for Box<dyn DynamicTraceReference>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
Source§

type ValueTrait = dyn DynamicTraceReference

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§