Enum nannou::ui::backend::glium::glium::SwapBuffersError [−][src]
pub enum SwapBuffersError { ContextLost, AlreadySwapped, }
Error that can happen when swapping buffers.
Variants
ContextLost
The OpenGL context has been lost and needs to be recreated. The Display
and all the
objects associated to it (textures, buffers, programs, etc.) need to be recreated from
scratch.
Operations will have no effect. Functions that read textures, buffers, etc. from OpenGL will return uninitialized data instead.
A context loss usually happens on mobile devices when the user puts the application on
sleep and wakes it up later. However any OpenGL implementation can theoretically lose the
context at any time. Can only happen if calling is_context_loss_possible()
returns true.
AlreadySwapped
The buffers have already been swapped.
This error can be returned when set_finish()
is called multiple times, or finish()
is
called after set_finish()
.
Trait Implementations
impl Clone for SwapBuffersError
[src]
impl Clone for SwapBuffersError
fn clone(&self) -> SwapBuffersError
[src]
fn clone(&self) -> SwapBuffersError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for SwapBuffersError
[src]
impl Debug for SwapBuffersError
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for SwapBuffersError
[src]
impl Error for SwapBuffersError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for SwapBuffersError
[src]
impl Display for SwapBuffersError
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for SwapBuffersError
[src]
impl Copy for SwapBuffersError
impl Eq for SwapBuffersError
[src]
impl Eq for SwapBuffersError
impl PartialEq<SwapBuffersError> for SwapBuffersError
[src]
impl PartialEq<SwapBuffersError> for SwapBuffersError
Auto Trait Implementations
impl Send for SwapBuffersError
impl Send for SwapBuffersError
impl Sync for SwapBuffersError
impl Sync for SwapBuffersError