Enum gfx_hal::window::SwapchainError
source · [−]pub enum SwapchainError {
OutOfMemory(OutOfMemory),
DeviceLost(DeviceLost),
SurfaceLost(SurfaceLost),
WindowInUse,
WrongThread,
Unknown,
}
Expand description
Error occurred during swapchain configuration.
Variants
OutOfMemory(OutOfMemory)
Out of either host or device memory.
DeviceLost(DeviceLost)
Device is lost
SurfaceLost(SurfaceLost)
Surface is lost
WindowInUse
Window in use
WrongThread
Accecssing the underlying NSView from wrong thread https://github.com/gfx-rs/gfx/issues/3704
Unknown
Unknown error.
Trait Implementations
sourceimpl Clone for SwapchainError
impl Clone for SwapchainError
sourcefn clone(&self) -> SwapchainError
fn clone(&self) -> SwapchainError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SwapchainError
impl Debug for SwapchainError
sourceimpl Display for SwapchainError
impl Display for SwapchainError
sourceimpl Error for SwapchainError
impl Error for SwapchainError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DeviceLost> for SwapchainError
impl From<DeviceLost> for SwapchainError
sourcefn from(source: DeviceLost) -> Self
fn from(source: DeviceLost) -> Self
Performs the conversion.
sourceimpl From<OutOfMemory> for SwapchainError
impl From<OutOfMemory> for SwapchainError
sourcefn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Performs the conversion.
sourceimpl From<SurfaceLost> for SwapchainError
impl From<SurfaceLost> for SwapchainError
sourcefn from(source: SurfaceLost) -> Self
fn from(source: SurfaceLost) -> Self
Performs the conversion.
sourceimpl PartialEq<SwapchainError> for SwapchainError
impl PartialEq<SwapchainError> for SwapchainError
sourcefn eq(&self, other: &SwapchainError) -> bool
fn eq(&self, other: &SwapchainError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SwapchainError) -> bool
fn ne(&self, other: &SwapchainError) -> bool
This method tests for !=
.
impl StructuralPartialEq for SwapchainError
Auto Trait Implementations
impl RefUnwindSafe for SwapchainError
impl Send for SwapchainError
impl Sync for SwapchainError
impl Unpin for SwapchainError
impl UnwindSafe for SwapchainError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more