pub enum Eagle3SessionError {
Init,
Process,
BadSeqId {
seq_id: i32,
n_seq: u32,
},
InvalidConfig(&'static str),
}Expand description
Errors raised by the EAGLE-3 draft session.
Variants§
Init
Returned when session init fails. The most common cause is that draft
was not built from a valid EAGLE-3 draft model (upstream expects a draft
model exposing exactly 3 target-extract layers), or that one of the
contexts is incompatible.
Process
process returned false on the underlying speculative context.
BadSeqId
Caller passed a sequence id outside [0, n_seq).
InvalidConfig(&'static str)
Invalid session configuration (e.g. n_draft_max <= 0).
Trait Implementations§
Source§impl Debug for Eagle3SessionError
impl Debug for Eagle3SessionError
Source§impl Display for Eagle3SessionError
impl Display for Eagle3SessionError
Source§impl Error for Eagle3SessionError
impl Error for Eagle3SessionError
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 Eagle3SessionError
impl RefUnwindSafe for Eagle3SessionError
impl Send for Eagle3SessionError
impl Sync for Eagle3SessionError
impl Unpin for Eagle3SessionError
impl UnsafeUnpin for Eagle3SessionError
impl UnwindSafe for Eagle3SessionError
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