Skip to main content

ValueDebug

Trait ValueDebug 

Source
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§

Source

fn dbg_depth( &self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + '_>>

Like dbg, but with a depth limit.

Provided Methods§

Source

fn dbg(&self) -> Pin<Box<dyn Future<Output = Result<String>> + Send + '_>>

Trait Implementations§

Source§

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

Source§

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

Source§

impl VcValueTrait for Box<dyn ValueDebug>

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 ValueDebug

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".

Implementations on Foreign Types§

Source§

impl ValueDebug for ()

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Duration

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<RcStr>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<String>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<bool>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<u16>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<u64>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for RcStr

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for String

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Value

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Vec<RcStr>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Vec<bool>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Vec<u8>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for bool

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i8

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i16

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i32

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i64

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i128

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for isize

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u8

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u16

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u32

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u64

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u128

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for usize

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Implementors§