Skip to main content

ExportStep

Enum ExportStep 

Source
pub enum ExportStep {
    Waiting {
        time: MediaTime,
        missing_sources: Vec<SourceId>,
    },
    Rendered {
        index: u64,
        time: MediaTime,
        readback: Yuv420pReadback,
    },
    Complete,
}
Expand description

Outcome of one non-blocking exporter step.

Variants§

§

Waiting

Required decoded frames are not available; retry without advancing.

Fields

§time: MediaTime

Timeline timestamp that remains pending.

§missing_sources: Vec<SourceId>

Sources the host must provide before retrying.

§

Rendered

One frame was rendered and the cursor advanced exactly once.

Fields

§index: u64

Zero-based position inside this export operation.

§time: MediaTime

Exact rational-frame timestamp.

§readback: Yuv420pReadback

Submitted planar YUV420 readback for the encoder.

§

Complete

Every scheduled frame has been produced.

Trait Implementations§

Source§

impl Debug for ExportStep

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for ExportStep

§

impl !RefUnwindSafe for ExportStep

§

impl !UnwindSafe for ExportStep

§

impl Forget for ExportStep

§

impl Move for ExportStep

§

impl Send for ExportStep
where RawVecInner: Send, Arc<ReadbackBufferPool>: Send, Arc<CoreBuffer>: Send, Arc<Mutex<MapContext>>: Send, InternalBitFlags: Send, Arc<CoreAdapter>: Send, Arc<CoreDevice>: Send, Arc<LockedQueue>: Send, Arc<Capabilities>: Send, Arc<DiagnosticHook>: Send, Arc<GpuRate>: Send, Arc<SubmissionClock>: Send, Arc<LostState>: Send, Arc<ReportState>: Send, BoxRaw<CanaryBuffer>: Send, Atomic<bool>: Send,

§

impl Sync for ExportStep
where RawVecInner: Sync, Arc<ReadbackBufferPool>: Sync, Arc<CoreBuffer>: Sync, Arc<Mutex<MapContext>>: Sync, InternalBitFlags: Sync, Arc<CoreAdapter>: Sync, Arc<CoreDevice>: Sync, Arc<LockedQueue>: Sync, Arc<Capabilities>: Sync, Arc<DiagnosticHook>: Sync, Arc<GpuRate>: Sync, Arc<SubmissionClock>: Sync, Arc<LostState>: Sync, Arc<ReportState>: Sync, BoxRaw<CanaryBuffer>: Sync, Atomic<bool>: Sync,

§

impl Unpin for ExportStep
where *const u8 is !null: Unpin, Arc<ReadbackBufferPool>: Unpin, Arc<CoreBuffer>: Unpin, Arc<Mutex<MapContext>>: Unpin, InternalBitFlags: Unpin, Arc<CoreAdapter>: Unpin, Arc<CoreDevice>: Unpin, Arc<LockedQueue>: Unpin, Arc<Capabilities>: Unpin, Arc<DiagnosticHook>: Unpin, Arc<GpuRate>: Unpin, Arc<SubmissionClock>: Unpin, Arc<LostState>: Unpin, Arc<ReportState>: Unpin, Box<CanaryBuffer>: Unpin, Align1<u8>: Unpin,

§

impl UnsafeUnpin for ExportStep
where *const u8 is !null: UnsafeUnpin, PhantomData<SourceId>: UnsafeUnpin, *const ArcInner<ReadbackBufferPool> is !null: UnsafeUnpin, PhantomData<ArcInner<ReadbackBufferPool>>: UnsafeUnpin, *const ArcInner<CoreBuffer> is !null: UnsafeUnpin, PhantomData<ArcInner<CoreBuffer>>: UnsafeUnpin, *const ArcInner<Mutex<MapContext>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<MapContext>>>: UnsafeUnpin, InternalBitFlags: UnsafeUnpin, *const ArcInner<CoreAdapter> is !null: UnsafeUnpin, PhantomData<ArcInner<CoreAdapter>>: UnsafeUnpin, *const ArcInner<CoreDevice> is !null: UnsafeUnpin, PhantomData<ArcInner<CoreDevice>>: UnsafeUnpin, *const ArcInner<LockedQueue> is !null: UnsafeUnpin, PhantomData<ArcInner<LockedQueue>>: UnsafeUnpin, *const ArcInner<Capabilities> is !null: UnsafeUnpin, PhantomData<ArcInner<Capabilities>>: UnsafeUnpin, *const ArcInner<DiagnosticHook> is !null: UnsafeUnpin, PhantomData<ArcInner<DiagnosticHook>>: UnsafeUnpin, *const ArcInner<GpuRate> is !null: UnsafeUnpin, PhantomData<ArcInner<GpuRate>>: UnsafeUnpin, PhantomData<StagedPlane>: UnsafeUnpin, *const ArcInner<SubmissionClock> is !null: UnsafeUnpin, PhantomData<ArcInner<SubmissionClock>>: UnsafeUnpin, PhantomData<(SubmissionIndex, u64)>: UnsafeUnpin, *const ArcInner<LostState> is !null: UnsafeUnpin, PhantomData<ArcInner<LostState>>: UnsafeUnpin, *const ArcInner<ReportState> is !null: UnsafeUnpin, PhantomData<ArcInner<ReportState>>: UnsafeUnpin, *const CanaryBuffer is !null: UnsafeUnpin, PhantomData<CanaryBuffer>: UnsafeUnpin, Align1<u8>: UnsafeUnpin,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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,