[][src]Struct wgpu_subscriber::ChromeTracingLayer

pub struct ChromeTracingLayer { /* fields omitted */ }

A layer to add to a tracing_subscriber::Registry to output to a chrome trace.

If you want an easy "set and forget" method of installing this and normal tracing logging, call [initialize_default_subscriber].

Implementations

impl ChromeTracingLayer[src]

pub fn with_file(file: impl AsRef<Path>) -> Result<Self>[src]

Create a trace which outputs to the given file. The file will be cleared if it exits.

Trait Implementations

impl Clone for ChromeTracingLayer[src]

impl Debug for ChromeTracingLayer[src]

impl Drop for ChromeTracingLayer[src]

impl<S> Layer<S> for ChromeTracingLayer where
    S: Subscriber + for<'span> LookupSpan<'span>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.