Struct vulkano::device::ExtensionRestrictionError
source · pub struct ExtensionRestrictionError {
pub extension: &'static str,
pub restriction: ExtensionRestriction,
}
Expand description
An error that can happen when enabling an extension on an instance or device.
Fields§
§extension: &'static str
The extension in question.
restriction: ExtensionRestriction
The restriction that was not met.
Trait Implementations§
source§impl Clone for ExtensionRestrictionError
impl Clone for ExtensionRestrictionError
source§fn clone(&self) -> ExtensionRestrictionError
fn clone(&self) -> ExtensionRestrictionError
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 ExtensionRestrictionError
impl Debug for ExtensionRestrictionError
source§impl Display for ExtensionRestrictionError
impl Display for ExtensionRestrictionError
source§impl Error for ExtensionRestrictionError
impl Error for ExtensionRestrictionError
1.30.0 · 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()
source§impl From<ExtensionRestrictionError> for DeviceCreationError
impl From<ExtensionRestrictionError> for DeviceCreationError
source§fn from(err: ExtensionRestrictionError) -> Self
fn from(err: ExtensionRestrictionError) -> Self
Converts to this type from the input type.
source§impl From<ExtensionRestrictionError> for InstanceCreationError
impl From<ExtensionRestrictionError> for InstanceCreationError
source§fn from(err: ExtensionRestrictionError) -> Self
fn from(err: ExtensionRestrictionError) -> Self
Converts to this type from the input type.