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
sourceimpl Clone for ExtensionRestrictionError
impl Clone for ExtensionRestrictionError
sourcefn clone(&self) -> ExtensionRestrictionError
fn clone(&self) -> ExtensionRestrictionError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExtensionRestrictionError
impl Debug for ExtensionRestrictionError
sourceimpl Display for ExtensionRestrictionError
impl Display for ExtensionRestrictionError
sourceimpl Error for ExtensionRestrictionError
impl Error for ExtensionRestrictionError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ExtensionRestrictionError> for DeviceCreationError
impl From<ExtensionRestrictionError> for DeviceCreationError
sourcefn from(err: ExtensionRestrictionError) -> Self
fn from(err: ExtensionRestrictionError) -> Self
Converts to this type from the input type.
sourceimpl From<ExtensionRestrictionError> for InstanceCreationError
impl From<ExtensionRestrictionError> for InstanceCreationError
sourcefn from(err: ExtensionRestrictionError) -> Self
fn from(err: ExtensionRestrictionError) -> Self
Converts to this type from the input type.
impl Copy for ExtensionRestrictionError
Auto Trait Implementations
impl RefUnwindSafe for ExtensionRestrictionError
impl Send for ExtensionRestrictionError
impl Sync for ExtensionRestrictionError
impl Unpin for ExtensionRestrictionError
impl UnwindSafe for ExtensionRestrictionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more