pub trait ValueDebug:
Send
+ Sync
+ NonLocalValue {
// Required method
fn dbg_depth(
&self,
depth: usize,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + '_>>;
// Provided method
fn dbg(&self) -> Pin<Box<dyn Future<Output = Result<String>> + Send + '_>> { ... }
}Expand description
Debug-like trait for [Vc] types, automatically derived when using
turbo_tasks::value and turbo_tasks::value_trait.
§Usage
ⓘ
let trait_ref = any_vc.into_trait_ref().await?;
println!("{}", trait_ref.dbg().await?);Required Methods§
Provided Methods§
Trait Implementations§
Source§impl VcValueTrait for Box<dyn ValueDebug>
impl VcValueTrait for Box<dyn ValueDebug>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated at program load by
#[ctor::ctor]
functions emitted by each #[turbo_tasks::value_impl] expansion. Read moretype ValueTrait = dyn ValueDebug
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.