Struct wgpu_hal::InstanceError
source · pub struct InstanceError {
pub(crate) message: String,
pub(crate) source: Option<Arc<dyn Error + Send + Sync + 'static>>,
}
Expand description
Error occurring while trying to create an instance, or create a surface from an instance; typically relating to the state of the underlying graphics API or hardware.
Fields§
§message: String
These errors are very platform specific, so do not attempt to encode them as an enum.
This message should describe the problem in sufficient detail to be useful for a user-to-developer “why won’t this work on my machine” bug report, and otherwise follow https://rust-lang.github.io/api-guidelines/interoperability.html#error-types-are-meaningful-and-well-behaved-c-good-err.
source: Option<Arc<dyn Error + Send + Sync + 'static>>
Underlying error value, if any is available.
Implementations§
Trait Implementations§
source§impl Clone for InstanceError
impl Clone for InstanceError
source§fn clone(&self) -> InstanceError
fn clone(&self) -> InstanceError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstanceError
impl Debug for InstanceError
source§impl Display for InstanceError
impl Display for InstanceError
source§impl Error for InstanceError
impl Error for InstanceError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for InstanceError
impl !RefUnwindSafe for InstanceError
impl Send for InstanceError
impl Sync for InstanceError
impl Unpin for InstanceError
impl !UnwindSafe for InstanceError
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