# BaseRenderToStreamHandler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/screenshots/trait-baserendertostreamhandler/

**trait** · [`ferroui-diagnostics`](/docs/0.5.0/api/ferroui-diagnostics/) · v0.5.0

```rust
trait BaseRenderToStreamHandler
```

Base class for render Screenshto to stream

An abstract class upstream: an implementation supplies the stream
(`get_stream`) and is an [`IScreenshotHandler`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/trait-iscreenshothandler/) whose `take` renders the
control to that stream, as the non-virtual `Take` of the original does.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/screenshots/base_render_to_stream_handler.rs#L14)

## Members

- [`get_stream`](#function-get_stream)

<a id="function-get_stream"></a>

### get_stream

```rust
fn get_stream(self: &Self, control: &Ref<Control>) -> LocalBoxFuture<std::io::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).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/screenshots/base_render_to_stream_handler.rs#L19)

## Trait implementations

- [`BaseRenderToStreamHandler`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/screenshots/trait-baserendertostreamhandler/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
