pub enum RendererCreationError {
InvalidScaleFactor(f64),
AdapterNotAvailable(RequestAdapterError),
DeviceCreationFailed(RequestDeviceError),
}Expand description
Errors that can occur when creating a Renderer via
Renderer::try_new_headless.
Variants§
InvalidScaleFactor(f64)
The provided scale_factor is not usable (must be finite and positive).
AdapterNotAvailable(RequestAdapterError)
No suitable GPU adapter was found.
DeviceCreationFailed(RequestDeviceError)
The GPU device could not be created.
Trait Implementations§
Source§impl Debug for RendererCreationError
impl Debug for RendererCreationError
Source§impl Display for RendererCreationError
impl Display for RendererCreationError
Source§impl Error for RendererCreationError
impl Error for RendererCreationError
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<RequestAdapterError> for RendererCreationError
impl From<RequestAdapterError> for RendererCreationError
Source§fn from(source: RequestAdapterError) -> Self
fn from(source: RequestAdapterError) -> Self
Converts to this type from the input type.
Source§impl From<RequestDeviceError> for RendererCreationError
impl From<RequestDeviceError> for RendererCreationError
Source§fn from(source: RequestDeviceError) -> Self
fn from(source: RequestDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RendererCreationError
impl RefUnwindSafe for RendererCreationError
impl Send for RendererCreationError
impl Sync for RendererCreationError
impl Unpin for RendererCreationError
impl UnsafeUnpin for RendererCreationError
impl UnwindSafe for RendererCreationError
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