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§
Sourcefn origin_fn_name(&self) -> RcStr
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§
impl Dynamic<Box<dyn DynamicTraceReference>> for Box<dyn DynamicTraceReference>
impl Dynamic<Box<dyn ModuleReference>> for Box<dyn DynamicTraceReference>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn DynamicTraceReference>
Available on debug-assertions enabled only.
Source§impl TraitVtablePrototype for Box<dyn DynamicTraceReference>
impl TraitVtablePrototype for Box<dyn DynamicTraceReference>
impl Upcast<Box<dyn DynamicTraceReference>> for Box<dyn DynamicTraceReference>
impl Upcast<Box<dyn ModuleReference>> for Box<dyn DynamicTraceReference>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn DynamicTraceReference>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ModuleReference>> for Box<dyn DynamicTraceReference>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn DynamicTraceReference>
Available on debug-assertions enabled only.
Source§impl VcValueTrait for Box<dyn DynamicTraceReference>
impl VcValueTrait for Box<dyn DynamicTraceReference>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
type ValueTrait = dyn DynamicTraceReference
Source§fn get_trait_type_id() -> TraitTypeId
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".