logo
pub struct AssetPtr<T> { /* private fields */ }
Expand description

A managed iasset pointer.

Implementations

Attach to an iasset pointer and increment its reference count.

Attempt to construct Self via a conversion.

Retrieve a supported interface of the managed pointer.

Example:

let mut site = AssetPtr::adopt(external_ptr);
let source = AssetPtr::<video_source>::try_from(&mut site);
assert!(source.is_ok());

Methods from Deref<Target = video_destination>

Whether this instance of video_renderer is attached to a DOM element and is capable of playing.

Start streaming/rendering.

  • frame_size - the width and the height of the video frame.
  • color_space - the color space format of the video frame.
  • src - an optional custom video_source interface implementation, provided by the application.

Stop streaming.

Render the next frame.

Render the next frame with the given stride.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Mutably dereferences the value.

Decrements the reference count of a managed pointer.

Executes the destructor for this type. Read more

Attach to an iasset pointer.

Attach to a pointer and increment its reference count.

It’s okay to transfer video pointers between threads.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.