Skip to main content

BaseRenderToStreamHandler

Trait BaseRenderToStreamHandler 

Source
pub trait BaseRenderToStreamHandler {
    // Required method
    fn get_stream(
        &self,
        control: &Ref<Control>,
    ) -> LocalBoxFuture<Result<Option<Box<dyn Write>>>>;
}
Expand description

Base class for render Screenshto to stream

An abstract class upstream: an implementation supplies the stream (get_stream) and is an IScreenshotHandler whose take renders the control to that stream, as the non-virtual Take of the original does.

Required Methods§

Source

fn get_stream( &self, control: &Ref<Control>, ) -> LocalBoxFuture<Result<Option<Box<dyn Write>>>>

Get stream to write a screenshot to.

Resolves to the stream to render the control to, or to None when there is none (the screenshot is then not taken).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§