pub enum WebGlContextKind {
Existing,
TransferredCanvas,
Unknown(u32),
}Expand description
How a render session gets its WebGL context.
See mln_web_gl_context_kind in the
C API reference.
Variants§
Existing
The session uses a context that you created with
emscripten_webgl_create_context().
TransferredCanvas
The library transfers the canvas that canvas_selector names to a
worker and creates the context there.
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for WebGlContextKind
impl Clone for WebGlContextKind
Source§fn clone(&self) -> WebGlContextKind
fn clone(&self) -> WebGlContextKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WebGlContextKind
Source§impl Debug for WebGlContextKind
impl Debug for WebGlContextKind
Source§impl Default for WebGlContextKind
impl Default for WebGlContextKind
impl Eq for WebGlContextKind
Source§impl Hash for WebGlContextKind
impl Hash for WebGlContextKind
Source§impl PartialEq for WebGlContextKind
impl PartialEq for WebGlContextKind
impl StructuralPartialEq for WebGlContextKind
Auto Trait Implementations§
impl Freeze for WebGlContextKind
impl RefUnwindSafe for WebGlContextKind
impl Send for WebGlContextKind
impl Sync for WebGlContextKind
impl Unpin for WebGlContextKind
impl UnsafeUnpin for WebGlContextKind
impl UnwindSafe for WebGlContextKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more