pub enum MtpSpeculativeError {
InvalidParams,
InitFailed,
Status(i32),
DraftOverflow,
}Expand description
Errors returned by the MTP speculative wrapper.
Variants§
InvalidParams
Invalid parameters were provided.
InitFailed
llama.cpp returned a null speculative handle.
Status(i32)
llama.cpp rejected a wrapper call.
DraftOverflow
The draft output exceeded the caller-provided bound.
Trait Implementations§
Source§impl Debug for MtpSpeculativeError
impl Debug for MtpSpeculativeError
Source§impl Display for MtpSpeculativeError
impl Display for MtpSpeculativeError
impl Eq for MtpSpeculativeError
Source§impl Error for MtpSpeculativeError
impl Error for MtpSpeculativeError
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 MtpSpeculativeError
impl PartialEq for MtpSpeculativeError
Source§fn eq(&self, other: &MtpSpeculativeError) -> bool
fn eq(&self, other: &MtpSpeculativeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MtpSpeculativeError
Auto Trait Implementations§
impl Freeze for MtpSpeculativeError
impl RefUnwindSafe for MtpSpeculativeError
impl Send for MtpSpeculativeError
impl Sync for MtpSpeculativeError
impl Unpin for MtpSpeculativeError
impl UnsafeUnpin for MtpSpeculativeError
impl UnwindSafe for MtpSpeculativeError
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