Trait XRMediaBindingMethods

Source
pub(crate) trait XRMediaBindingMethods<D>
where D: DomTypes,
{ // Required methods fn CreateQuadLayer( &self, video: &<D as DomTypes>::HTMLVideoElement, init: &XRMediaLayerInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::XRQuadLayer>>, Error>; fn CreateCylinderLayer( &self, video: &<D as DomTypes>::HTMLVideoElement, init: &XRMediaLayerInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::XRCylinderLayer>>, Error>; fn CreateEquirectLayer( &self, video: &<D as DomTypes>::HTMLVideoElement, init: &XRMediaLayerInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::XREquirectLayer>>, Error>; fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, session: &<D as DomTypes>::XRSession, ) -> Result<Root<Dom<<D as DomTypes>::XRMediaBinding>>, Error>; }

Required Methods§

Source

fn CreateQuadLayer( &self, video: &<D as DomTypes>::HTMLVideoElement, init: &XRMediaLayerInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::XRQuadLayer>>, Error>

Source

fn CreateCylinderLayer( &self, video: &<D as DomTypes>::HTMLVideoElement, init: &XRMediaLayerInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::XRCylinderLayer>>, Error>

Source

fn CreateEquirectLayer( &self, video: &<D as DomTypes>::HTMLVideoElement, init: &XRMediaLayerInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::XREquirectLayer>>, Error>

Source

fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, session: &<D as DomTypes>::XRSession, ) -> Result<Root<Dom<<D as DomTypes>::XRMediaBinding>>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§