Trait script::dom::bindings::codegen::Bindings::XRMediaBindingBinding::XRMediaBinding_Binding::XRMediaBindingMethods
source · pub trait XRMediaBindingMethods<D: DomTypes> {
// Required methods
fn CreateQuadLayer(
&self,
video: &HTMLVideoElement,
init: &XRMediaLayerInit,
) -> Result<Root<Dom<XRQuadLayer>>, Error>;
fn CreateCylinderLayer(
&self,
video: &HTMLVideoElement,
init: &XRMediaLayerInit,
) -> Result<Root<Dom<XRCylinderLayer>>, Error>;
fn CreateEquirectLayer(
&self,
video: &HTMLVideoElement,
init: &XRMediaLayerInit,
) -> Result<Root<Dom<XREquirectLayer>>, Error>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
session: &XRSession,
) -> Result<Root<Dom<XRMediaBinding>>, Error>;
}
Required Methods§
fn CreateQuadLayer( &self, video: &HTMLVideoElement, init: &XRMediaLayerInit, ) -> Result<Root<Dom<XRQuadLayer>>, Error>
fn CreateCylinderLayer( &self, video: &HTMLVideoElement, init: &XRMediaLayerInit, ) -> Result<Root<Dom<XRCylinderLayer>>, Error>
fn CreateEquirectLayer( &self, video: &HTMLVideoElement, init: &XRMediaLayerInit, ) -> Result<Root<Dom<XREquirectLayer>>, Error>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, session: &XRSession, ) -> Result<Root<Dom<XRMediaBinding>>, Error>
Object Safety§
This trait is not object safe.