Struct vulkano::device::FeatureRestrictionError
source · [−]pub struct FeatureRestrictionError {
pub feature: &'static str,
pub restriction: FeatureRestriction,
}
Expand description
An error that can happen when enabling a feature on a device.
Fields
feature: &'static str
The feature in question.
restriction: FeatureRestriction
The restriction that was not met.
Trait Implementations
sourceimpl Clone for FeatureRestrictionError
impl Clone for FeatureRestrictionError
sourcefn clone(&self) -> FeatureRestrictionError
fn clone(&self) -> FeatureRestrictionError
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 moresourceimpl Debug for FeatureRestrictionError
impl Debug for FeatureRestrictionError
sourceimpl Display for FeatureRestrictionError
impl Display for FeatureRestrictionError
sourceimpl Error for FeatureRestrictionError
impl Error for FeatureRestrictionError
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
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<FeatureRestrictionError> for DeviceCreationError
impl From<FeatureRestrictionError> for DeviceCreationError
sourcefn from(err: FeatureRestrictionError) -> Self
fn from(err: FeatureRestrictionError) -> Self
Converts to this type from the input type.
impl Copy for FeatureRestrictionError
Auto Trait Implementations
impl RefUnwindSafe for FeatureRestrictionError
impl Send for FeatureRestrictionError
impl Sync for FeatureRestrictionError
impl Unpin for FeatureRestrictionError
impl UnwindSafe for FeatureRestrictionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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