Skip to main content

MemoryTrace

Struct MemoryTrace 

Source
pub struct MemoryTrace { /* private fields */ }
Available on crate feature trace and (crate features replay or trace) only.

Implementations§

Source§

impl MemoryTrace

Source

pub fn new() -> Self

Source

pub fn actions(&self) -> &[Action<'static, PointerReferences>]

Trait Implementations§

Source§

impl Default for MemoryTrace

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Trace for MemoryTrace

Source§

fn make_binary(&mut self, kind: DataKind, data: &[u8]) -> Data

Store [u8] data in the trace.

Using a string kind is probably a bug, but should work as long as the data is UTF-8.

Source§

fn make_string(&mut self, kind: DataKind, data: &str) -> Data

Store str data in the trace.

Using a binary kind is fine, but it’s not clear why not use make_binary instead.

Source§

fn add(&mut self, action: Action<'_, PointerReferences>)
where for<'a> Action<'a, PointerReferences>: Serialize,

Auto Trait Implementations§

§

impl Forget for MemoryTrace

§

impl Freeze for MemoryTrace
where *const u8 is !null: Freeze, PhantomData<Action<'static, PointerReferences>>: Freeze,

§

impl Move for MemoryTrace

§

impl RefUnwindSafe for MemoryTrace
where String: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, PointerId<Surface>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, PointerId<Buffer>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, PointerId<Texture>: RefUnwindSafe, PointerId<TextureView>: RefUnwindSafe, PointerId<ExternalTexture>: RefUnwindSafe, NonZero<usize>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, NonZero<u64>: RefUnwindSafe, NonZero<u32>: RefUnwindSafe, Vec<BindGroupLayoutEntry>: RefUnwindSafe, Vec<Option<PointerId<BindGroupLayout>>>: RefUnwindSafe, Vec<BufferBinding<PointerId<Buffer>>>: RefUnwindSafe, Vec<PointerId<Sampler>>: RefUnwindSafe, Vec<PointerId<TextureView>>: RefUnwindSafe, Vec<PointerId<Tlas>>: RefUnwindSafe, Vec<BindGroupEntry<'static, PointerId<Buffer>, PointerId<Sampler>, PointerId<TextureView>, PointerId<Tlas>, PointerId<ExternalTexture>>>: RefUnwindSafe, Vec<PassthroughShaderEntryPoint<'static>>: RefUnwindSafe, Vec<VertexAttribute>: RefUnwindSafe, Vec<Option<VertexBufferLayout<'static>>>: RefUnwindSafe, Vec<Option<ColorTargetState>>: RefUnwindSafe, Vec<u8>: RefUnwindSafe, PointerId<RenderBundle>: RefUnwindSafe, Vec<Option<TextureFormat>>: RefUnwindSafe, PointerId<BindGroup>: RefUnwindSafe, PointerId<RenderPipeline>: RefUnwindSafe, PointerId<QuerySet>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, PointerId<ComputePipeline>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, PointerId<RayTracingPipeline>: RefUnwindSafe, Option<RenderPassColorAttachment<PointerId<TextureView>>>: RefUnwindSafe, PointerId<Blas>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, PointerId<Tlas>: RefUnwindSafe, InternalBitFlags: RefUnwindSafe, InternalBitFlags: RefUnwindSafe,

§

impl Send for MemoryTrace
where RawVecInner: Send, &'static str: Send, String: Send, InternalBitFlags: Send, InternalBitFlags: Send, PointerId<Surface>: Send, InternalBitFlags: Send, PointerId<Buffer>: Send, InternalBitFlags: Send, InternalBitFlags: Send, PointerId<Texture>: Send, PointerId<TextureView>: Send, PointerId<ExternalTexture>: Send, BoxRaw<[PointerId<TextureView>]>: Send, NonZero<usize>: Send, &'static [BindGroupLayoutEntry]: Send, Vec<BindGroupLayoutEntry>: Send, &'static [Option<PointerId<BindGroupLayout>>]: Send, Vec<Option<PointerId<BindGroupLayout>>>: Send, &'static [BindGroupEntry<'static, PointerId<Buffer>, PointerId<Sampler>, PointerId<TextureView>, PointerId<Tlas>, PointerId<ExternalTexture>>]: Send, Vec<BindGroupEntry<'static, PointerId<Buffer>, PointerId<Sampler>, PointerId<TextureView>, PointerId<Tlas>, PointerId<ExternalTexture>>>: Send, &'static [PassthroughShaderEntryPoint<'static>]: Send, Vec<PassthroughShaderEntryPoint<'static>>: Send, RawTable<(String, f64)>: Send, &'static [Option<VertexBufferLayout<'static>>]: Send, Vec<Option<VertexBufferLayout<'static>>>: Send, &'static [Option<ColorTargetState>]: Send, Vec<Option<ColorTargetState>>: Send, NonZero<u32>: Send, &'static [u8]: Send, Vec<u8>: Send, PointerId<RenderBundle>: Send, &'static [Option<TextureFormat>]: Send, Vec<Option<TextureFormat>>: Send, PointerId<BindGroup>: Send, PointerId<RenderPipeline>: Send, PointerId<QuerySet>: Send, InternalBitFlags: Send, PointerId<ComputePipeline>: Send, InternalBitFlags: Send, InternalBitFlags: Send, PointerId<RayTracingPipeline>: Send, SmallVec<[Option<RenderPassColorAttachment<PointerId<TextureView>>>; 1]>: Send, PointerId<Blas>: Send, InternalBitFlags: Send, PointerId<Tlas>: Send, InternalBitFlags: Send, InternalBitFlags: Send,

§

impl Sync for MemoryTrace
where RawVecInner: Sync, String: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, PointerId<Surface>: Sync, InternalBitFlags: Sync, PointerId<Buffer>: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, PointerId<Texture>: Sync, PointerId<TextureView>: Sync, PointerId<ExternalTexture>: Sync, BoxRaw<[PointerId<TextureView>]>: Sync, NonZero<usize>: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, NonZero<u64>: Sync, NonZero<u32>: Sync, Vec<BindGroupLayoutEntry>: Sync, Vec<Option<PointerId<BindGroupLayout>>>: Sync, Vec<BufferBinding<PointerId<Buffer>>>: Sync, Vec<PointerId<Sampler>>: Sync, Vec<PointerId<TextureView>>: Sync, Vec<PointerId<Tlas>>: Sync, Vec<BindGroupEntry<'static, PointerId<Buffer>, PointerId<Sampler>, PointerId<TextureView>, PointerId<Tlas>, PointerId<ExternalTexture>>>: Sync, Vec<PassthroughShaderEntryPoint<'static>>: Sync, RawTable<(String, f64)>: Sync, Vec<VertexAttribute>: Sync, Vec<Option<VertexBufferLayout<'static>>>: Sync, Vec<Option<ColorTargetState>>: Sync, Vec<u8>: Sync, PointerId<RenderBundle>: Sync, Vec<Option<TextureFormat>>: Sync, PointerId<BindGroup>: Sync, PointerId<RenderPipeline>: Sync, PointerId<QuerySet>: Sync, InternalBitFlags: Sync, PointerId<ComputePipeline>: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync, PointerId<RayTracingPipeline>: Sync, SmallVecData<[Option<RenderPassColorAttachment<PointerId<TextureView>>>; 1]>: Sync, Option<RenderPassColorAttachment<PointerId<TextureView>>>: Sync, PointerId<Blas>: Sync, InternalBitFlags: Sync, PointerId<Tlas>: Sync, InternalBitFlags: Sync, InternalBitFlags: Sync,

§

impl Unpin for MemoryTrace
where *const u8 is !null: Unpin, &'static str: Unpin, String: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, PointerId<Surface>: Unpin, InternalBitFlags: Unpin, PointerId<Buffer>: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, PointerId<Texture>: Unpin, PointerId<TextureView>: Unpin, PointerId<ExternalTexture>: Unpin, Box<[PointerId<TextureView>]>: Unpin, NonZero<usize>: Unpin, &'static [BindGroupLayoutEntry]: Unpin, Vec<BindGroupLayoutEntry>: Unpin, &'static [Option<PointerId<BindGroupLayout>>]: Unpin, Vec<Option<PointerId<BindGroupLayout>>>: Unpin, &'static [BindGroupEntry<'static, PointerId<Buffer>, PointerId<Sampler>, PointerId<TextureView>, PointerId<Tlas>, PointerId<ExternalTexture>>]: Unpin, Vec<BindGroupEntry<'static, PointerId<Buffer>, PointerId<Sampler>, PointerId<TextureView>, PointerId<Tlas>, PointerId<ExternalTexture>>>: Unpin, &'static [PassthroughShaderEntryPoint<'static>]: Unpin, Vec<PassthroughShaderEntryPoint<'static>>: Unpin, &'static [Option<VertexBufferLayout<'static>>]: Unpin, Vec<Option<VertexBufferLayout<'static>>>: Unpin, &'static [Option<ColorTargetState>]: Unpin, Vec<Option<ColorTargetState>>: Unpin, NonZero<u32>: Unpin, &'static [u8]: Unpin, Vec<u8>: Unpin, PointerId<RenderBundle>: Unpin, &'static [Option<TextureFormat>]: Unpin, Vec<Option<TextureFormat>>: Unpin, PointerId<BindGroup>: Unpin, PointerId<RenderPipeline>: Unpin, PointerId<QuerySet>: Unpin, InternalBitFlags: Unpin, PointerId<ComputePipeline>: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, PointerId<RayTracingPipeline>: Unpin, *const Option<RenderPassColorAttachment<PointerId<TextureView>>> is !null: Unpin, Option<RenderPassColorAttachment<PointerId<TextureView>>>: Unpin, PointerId<Blas>: Unpin, InternalBitFlags: Unpin, PointerId<Tlas>: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin,

§

impl UnsafeUnpin for MemoryTrace
where *const u8 is !null: UnsafeUnpin, PhantomData<Action<'static, PointerReferences>>: UnsafeUnpin,

§

impl UnwindSafe for MemoryTrace
where RawVecInner: UnwindSafe, &'static str: UnwindSafe, String: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe, PointerId<Surface>: UnwindSafe, InternalBitFlags: UnwindSafe, PointerId<Buffer>: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe, PointerId<Texture>: UnwindSafe, PointerId<TextureView>: UnwindSafe, PointerId<ExternalTexture>: UnwindSafe, BoxRaw<[PointerId<TextureView>]>: UnwindSafe, NonZero<usize>: UnwindSafe, &'static [BindGroupLayoutEntry]: UnwindSafe, Vec<BindGroupLayoutEntry>: UnwindSafe, &'static [Option<PointerId<BindGroupLayout>>]: UnwindSafe, Vec<Option<PointerId<BindGroupLayout>>>: UnwindSafe, &'static [BindGroupEntry<'static, PointerId<Buffer>, PointerId<Sampler>, PointerId<TextureView>, PointerId<Tlas>, PointerId<ExternalTexture>>]: UnwindSafe, Vec<BindGroupEntry<'static, PointerId<Buffer>, PointerId<Sampler>, PointerId<TextureView>, PointerId<Tlas>, PointerId<ExternalTexture>>>: UnwindSafe, &'static [PassthroughShaderEntryPoint<'static>]: UnwindSafe, Vec<PassthroughShaderEntryPoint<'static>>: UnwindSafe, NonNull<u8>: UnwindSafe, &'static [Option<VertexBufferLayout<'static>>]: UnwindSafe, Vec<Option<VertexBufferLayout<'static>>>: UnwindSafe, &'static [Option<ColorTargetState>]: UnwindSafe, Vec<Option<ColorTargetState>>: UnwindSafe, NonZero<u32>: UnwindSafe, &'static [u8]: UnwindSafe, Vec<u8>: UnwindSafe, PointerId<RenderBundle>: UnwindSafe, &'static [Option<TextureFormat>]: UnwindSafe, Vec<Option<TextureFormat>>: UnwindSafe, PointerId<BindGroup>: UnwindSafe, PointerId<RenderPipeline>: UnwindSafe, PointerId<QuerySet>: UnwindSafe, InternalBitFlags: UnwindSafe, PointerId<ComputePipeline>: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe, PointerId<RayTracingPipeline>: UnwindSafe, NonNull<Option<RenderPassColorAttachment<PointerId<TextureView>>>>: UnwindSafe, Option<RenderPassColorAttachment<PointerId<TextureView>>>: UnwindSafe, PointerId<Blas>: UnwindSafe, InternalBitFlags: UnwindSafe, PointerId<Tlas>: UnwindSafe, InternalBitFlags: UnwindSafe, InternalBitFlags: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,