pub enum DeviceError {
Forward(Error),
Readback(Error),
Effect(Error),
}Expand description
2026-09-25: A device failure, split by when it happened: the forward itself (the batch may be preemptible), the readback after it, or an effect.
Variants§
Implementations§
Source§impl DeviceError
impl DeviceError
pub fn into_inner(self) -> Error
Sourcepub fn is_kv_exhausted(&self) -> bool
pub fn is_kv_exhausted(&self) -> bool
2026-09-25: A forward error whose message reports KV cache exhaustion (the pool ran dry mid-batch).
Trait Implementations§
Source§impl Debug for DeviceError
impl Debug for DeviceError
Auto Trait Implementations§
impl Freeze for DeviceError
impl RefUnwindSafe for DeviceError
impl Send for DeviceError
impl Sync for DeviceError
impl Unpin for DeviceError
impl UnwindSafe for DeviceError
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