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 Copy for SwapBuffersError
[src]

impl Error for SwapBuffersError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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

impl PartialEq<SwapBuffersError> for SwapBuffersError
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Clone for SwapBuffersError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for SwapBuffersError
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for SwapBuffersError
[src]

impl Debug for SwapBuffersError
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations