pub enum SpeculativeCaptureError {
ValueCount {
expected: usize,
actual: usize,
},
SchemaMismatch,
ShapeMismatch,
GenerationMismatch {
expected: u64,
actual: u64,
},
RealizationMismatch,
}Expand description
Invalid target-capture envelope.
Variants§
ValueCount
The envelope cardinality differs from its schema.
SchemaMismatch
Paths, order, shapes, ownership, or observation identities differ.
ShapeMismatch
One request-sized tensor shape exceeds or disagrees with its selected contract.
GenerationMismatch
The capture belongs to another ordinary-target generation.
RealizationMismatch
The lane was created for another selected model realization.
Trait Implementations§
Source§impl Clone for SpeculativeCaptureError
impl Clone for SpeculativeCaptureError
Source§fn clone(&self) -> SpeculativeCaptureError
fn clone(&self) -> SpeculativeCaptureError
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 SpeculativeCaptureError
impl Debug for SpeculativeCaptureError
Source§impl Display for SpeculativeCaptureError
impl Display for SpeculativeCaptureError
impl Eq for SpeculativeCaptureError
Source§impl Error for SpeculativeCaptureError
impl Error for SpeculativeCaptureError
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 SpeculativeCaptureError
impl PartialEq for SpeculativeCaptureError
impl StructuralPartialEq for SpeculativeCaptureError
Auto Trait Implementations§
impl Freeze for SpeculativeCaptureError
impl RefUnwindSafe for SpeculativeCaptureError
impl Send for SpeculativeCaptureError
impl Sync for SpeculativeCaptureError
impl Unpin for SpeculativeCaptureError
impl UnsafeUnpin for SpeculativeCaptureError
impl UnwindSafe for SpeculativeCaptureError
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