pub struct RecordingRenderer { /* private fields */ }Expand description
Rust-only frame receiver backed by SceneProjection.
Every attempted packet is retained, including malformed packets. Tests can therefore assert both the producer output and the receiver state after acceptance, recovery requests, or validation failures.
Implementations§
Source§impl RecordingRenderer
impl RecordingRenderer
Sourcepub const fn projection(&self) -> &SceneProjection
pub const fn projection(&self) -> &SceneProjection
Returns the accepted reference projection.
Sourcepub fn frames(&self) -> &[RecordedFrame]
pub fn frames(&self) -> &[RecordedFrame]
Returns every attempted frame in submission order.
Trait Implementations§
Source§impl Debug for RecordingRenderer
impl Debug for RecordingRenderer
Source§impl FrameSink for RecordingRenderer
impl FrameSink for RecordingRenderer
Source§type Error = ValidationError
type Error = ValidationError
Receiver-specific presentation failure.
Source§fn capabilities(&self) -> RenderCapabilities
fn capabilities(&self) -> RenderCapabilities
Declares optional semantic protocol groups before a surface presents them.
Source§fn present(&mut self, packet: &FramePacket) -> Result<ApplyResult, Self::Error>
fn present(&mut self, packet: &FramePacket) -> Result<ApplyResult, Self::Error>
Validates and presents one complete frame transaction.
Auto Trait Implementations§
impl Forget for RecordingRenderer
impl Freeze for RecordingRenderer
impl Move for RecordingRenderer
impl RefUnwindSafe for RecordingRenderer
impl Send for RecordingRenderer
impl Sync for RecordingRenderer
impl Unpin for RecordingRenderer
impl UnsafeUnpin for RecordingRenderer
impl UnwindSafe for RecordingRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more