Enum nannou::ui::backend::glium::glium::SwapBuffersError[][src]

pub enum SwapBuffersError {
    ContextLost,
    AlreadySwapped,
}

Error that can happen when swapping buffers.

Variants

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.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SwapBuffersError
[src]

Formats the value using the given formatter. Read more

impl Error for SwapBuffersError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Display for SwapBuffersError
[src]

Formats the value using the given formatter. Read more

impl Copy for SwapBuffersError
[src]

impl Eq for SwapBuffersError
[src]

impl PartialEq<SwapBuffersError> for SwapBuffersError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations