[][src]Enum glium::SwapBuffersError

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

impl Debug for SwapBuffersError[src]

impl Display for SwapBuffersError[src]

impl Eq for SwapBuffersError[src]

impl Error for SwapBuffersError[src]

impl PartialEq<SwapBuffersError> for SwapBuffersError[src]

impl StructuralEq for SwapBuffersError[src]

impl StructuralPartialEq for SwapBuffersError[src]

Auto Trait Implementations

impl RefUnwindSafe for SwapBuffersError

impl Send for SwapBuffersError

impl Sync for SwapBuffersError

impl Unpin for SwapBuffersError

impl UnwindSafe for SwapBuffersError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.