[−][src]Enum glium::SwapBuffersError
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]
fn clone(&self) -> SwapBuffersError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl PartialEq<SwapBuffersError> for SwapBuffersError
[src]
fn eq(&self, other: &SwapBuffersError) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T where
T: Copy,
[src]
T: Copy,
type Owned = T
A type that holds a sized version of the content.
fn read<F, E>(usize, F) -> Result<T, E> where
F: FnOnce(&mut T) -> Result<(), E>,
[src]
F: FnOnce(&mut T) -> Result<(), E>,
fn get_elements_size() -> usize
[src]
fn to_void_ptr(&Self) -> *const ()
[src]
fn ref_from_ptr(*mut (), usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,