pub enum RenderTargetError {
NotReady(RenderTargetNotReadyException),
Corrupted(RenderTargetCorruptedException),
}Expand description
Why a frame could not be begun on a render target: the two exceptions the compositor of the reference catches around the creation of a drawing context. Neither is a fault: a target that is not ready is asked again later, and a corrupted one is released and created anew.
Variants§
NotReady(RenderTargetNotReadyException)
The target cannot be drawn to yet.
Corrupted(RenderTargetCorruptedException)
The target can no longer be drawn to.
Trait Implementations§
Source§impl Clone for RenderTargetError
impl Clone for RenderTargetError
Source§impl Debug for RenderTargetError
impl Debug for RenderTargetError
Source§impl Display for RenderTargetError
impl Display for RenderTargetError
Source§impl Error for RenderTargetError
impl Error for RenderTargetError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RenderTargetCorruptedException> for RenderTargetError
impl From<RenderTargetCorruptedException> for RenderTargetError
Source§fn from(error: RenderTargetCorruptedException) -> Self
fn from(error: RenderTargetCorruptedException) -> Self
Converts to this type from the input type.
Source§impl From<RenderTargetNotReadyException> for RenderTargetError
impl From<RenderTargetNotReadyException> for RenderTargetError
Source§fn from(error: RenderTargetNotReadyException) -> Self
fn from(error: RenderTargetNotReadyException) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RenderTargetError
impl !Send for RenderTargetError
impl !Sync for RenderTargetError
impl !UnwindSafe for RenderTargetError
impl Freeze for RenderTargetError
impl Unpin for RenderTargetError
impl UnsafeUnpin for RenderTargetError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more