#[non_exhaustive]pub enum RequestAdapterError {
NotFound { /* private fields */ },
EnvNotSet,
}
Expand description
Error when Instance::request_adapter()
fails.
This type is not part of the WebGPU standard, where requestAdapter()
would simply return null.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFound
No adapter available via the instance’s backends matched the request’s adapter criteria.
EnvNotSet
Attempted to obtain adapter specified by environment variable, but the environment variable was not set.
Trait Implementations§
Source§impl Clone for RequestAdapterError
impl Clone for RequestAdapterError
Source§fn clone(&self) -> RequestAdapterError
fn clone(&self) -> RequestAdapterError
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 RequestAdapterError
impl Debug for RequestAdapterError
Source§impl<'de> Deserialize<'de> for RequestAdapterError
impl<'de> Deserialize<'de> for RequestAdapterError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestAdapterError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestAdapterError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RequestAdapterError
impl Display for RequestAdapterError
Source§impl Error for RequestAdapterError
impl Error for RequestAdapterError
1.30.0 · 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 PartialEq for RequestAdapterError
impl PartialEq for RequestAdapterError
Source§impl Serialize for RequestAdapterError
impl Serialize for RequestAdapterError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RequestAdapterError
Auto Trait Implementations§
impl Freeze for RequestAdapterError
impl RefUnwindSafe for RequestAdapterError
impl Send for RequestAdapterError
impl Sync for RequestAdapterError
impl Unpin for RequestAdapterError
impl UnwindSafe for RequestAdapterError
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