pub trait XRMediaBindingMethods {
    // 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§

Object Safety§

This trait is not object safe.

Implementors§