pub enum LayerScheduleError {
Empty,
LayerCount {
expected: usize,
actual: usize,
},
ZeroWindow,
MissingWindow,
WindowOutOfRange {
window: u32,
},
}Expand description
Validation error for an ordered per-layer schedule.
Variants§
Empty
A decoder-layer schedule cannot be empty.
LayerCount
The supplied policy count differs from decoder depth.
ZeroWindow
A sliding window was zero.
MissingWindow
Sliding attention was enabled without a window.
WindowOutOfRange
A window cannot be represented by runtime cache APIs.
Trait Implementations§
Source§impl Clone for LayerScheduleError
impl Clone for LayerScheduleError
Source§fn clone(&self) -> LayerScheduleError
fn clone(&self) -> LayerScheduleError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayerScheduleError
impl Debug for LayerScheduleError
Source§impl Display for LayerScheduleError
impl Display for LayerScheduleError
impl Eq for LayerScheduleError
Source§impl Error for LayerScheduleError
impl Error for LayerScheduleError
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 LayerScheduleError
impl PartialEq for LayerScheduleError
impl StructuralPartialEq for LayerScheduleError
Auto Trait Implementations§
impl Freeze for LayerScheduleError
impl RefUnwindSafe for LayerScheduleError
impl Send for LayerScheduleError
impl Sync for LayerScheduleError
impl Unpin for LayerScheduleError
impl UnsafeUnpin for LayerScheduleError
impl UnwindSafe for LayerScheduleError
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