pub enum Error {
NoError = 0,
InvalidEnum = 1_280,
InvalidValue = 1_281,
InvalidOperation = 1_282,
InvalidFramebufferOperation = 1_286,
OutOfMemory = 1_285,
ContextLostWebgl = 37_442,
}
Expand description
Constants returned from WebGLRenderingContext.getError().
Variants§
NoError = 0
Returned from getError.
InvalidEnum = 1_280
Returned from getError.
InvalidValue = 1_281
Returned from getError.
InvalidOperation = 1_282
Returned from getError.
InvalidFramebufferOperation = 1_286
Returned from getError.
OutOfMemory = 1_285
Returned from getError.
ContextLostWebgl = 37_442
Returned from getError.
Trait Implementations§
Source§impl FromWasmAbi for Error
impl FromWasmAbi for Error
Source§impl IntoWasmAbi for Error
impl IntoWasmAbi for Error
Source§impl OptionFromWasmAbi for Error
impl OptionFromWasmAbi for Error
Source§impl OptionIntoWasmAbi for Error
impl OptionIntoWasmAbi for Error
Source§impl TryFromJsValue for Error
impl TryFromJsValue for Error
Source§impl VectorFromWasmAbi for Error
impl VectorFromWasmAbi for Error
Source§impl VectorIntoWasmAbi for Error
impl VectorIntoWasmAbi for Error
impl Copy for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.