pub enum AdaptiveError {
InvalidStep {
step: u32,
total_steps: u32,
},
InvalidTransition {
from: Precision,
to: Precision,
reason: String,
},
UnsupportedPrecision(Precision),
ProfileError(String),
ScheduleError(String),
VramConstraint {
required_mb: u64,
available_mb: u64,
},
QualityConstraint {
actual: f32,
threshold: f32,
},
}Expand description
Errors that can occur during adaptive precision operations
Variants§
InvalidStep
Invalid step number
InvalidTransition
Invalid precision transition
UnsupportedPrecision(Precision)
Precision not supported by hardware
ProfileError(String)
Profile configuration error
ScheduleError(String)
Schedule generation failed
VramConstraint
VRAM constraint violation
QualityConstraint
Quality constraint violation
Trait Implementations§
Source§impl Debug for AdaptiveError
impl Debug for AdaptiveError
Source§impl Display for AdaptiveError
impl Display for AdaptiveError
Source§impl Error for AdaptiveError
impl Error for AdaptiveError
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()
Auto Trait Implementations§
impl Freeze for AdaptiveError
impl RefUnwindSafe for AdaptiveError
impl Send for AdaptiveError
impl Sync for AdaptiveError
impl Unpin for AdaptiveError
impl UnwindSafe for AdaptiveError
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