# BrowserFrameStream

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-browser/struct-browserframestream/

**struct** · [`ferroui-media-browser`](/docs/0.5.0/api/ferroui-media-browser/) · v0.5.0

```rust
struct BrowserFrameStream
```

One producer transfer in flight, with latest-native-frame dropping. A
second view reads the shared mailbox; it does not call this acquisition.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Browser/lib.rs#L381)

## Members

- [`clear`](#function-clear)
- [`has_pending_frame_work`](#function-has_pending_frame_work)
- [`poll`](#function-poll)

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

### clear

```rust
fn clear(self: &Self)
```

Retire queued producer output on seek/stop. Submitted GPU storage is
still held by its completion; the last native sequence stays rejected.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Browser/lib.rs#L392)

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

### has_pending_frame_work

```rust
fn has_pending_frame_work(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Browser/lib.rs#L396)

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

### poll

```rust
fn poll(self: &Self, sample: impl FnOnce() -> Result<Option<BrowserImageFrame>, MediaError>) -> Result<Option<FrameLease>, MediaError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Browser/lib.rs#L399)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)

## Availability

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