[−][src]Struct wgpu_subscriber::ChromeTracingLayer
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]
fn clone(&self) -> ChromeTracingLayer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
S: Subscriber + for<'span> LookupSpan<'span>,
fn on_event(&self, event: &Event<'_>, _ctx: Context<'_, S>)
[src]
fn on_enter(&self, id: &Id, ctx: Context<'_, S>)
[src]
fn on_exit(&self, id: &Id, ctx: Context<'_, S>)
[src]
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
[src]
fn enabled(&self, metadata: &Metadata<'_>, ctx: Context<'_, S>) -> bool
[src]
fn new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>)
[src]
fn on_record(&self, _span: &Id, _values: &Record<'_>, _ctx: Context<'_, S>)
[src]
fn on_follows_from(&self, _span: &Id, _follows: &Id, _ctx: Context<'_, S>)
[src]
fn on_close(&self, _id: Id, _ctx: Context<'_, S>)
[src]
fn on_id_change(&self, _old: &Id, _new: &Id, _ctx: Context<'_, S>)
[src]
fn and_then<L>(self, layer: L) -> Layered<L, Self, S> where
L: Layer<S>,
[src]
L: Layer<S>,
fn with_subscriber(self, inner: S) -> Layered<Self, S, S>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ChromeTracingLayer
impl Send for ChromeTracingLayer
impl Sync for ChromeTracingLayer
impl Unpin for ChromeTracingLayer
impl !UnwindSafe for ChromeTracingLayer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,