#[non_exhaustive]pub enum SpeculativeOutputError {
Semantic {
operation: String,
message: String,
},
Publication {
message: String,
},
}Expand description
Structured failure in backend-independent speculative output handling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Semantic
Transactional semantic parsing, decoding, or stop matching failed.
Publication
A committed-token callback rejected publication.
Implementations§
Trait Implementations§
Source§impl Clone for SpeculativeOutputError
impl Clone for SpeculativeOutputError
Source§fn clone(&self) -> SpeculativeOutputError
fn clone(&self) -> SpeculativeOutputError
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 SpeculativeOutputError
impl Debug for SpeculativeOutputError
Source§impl Display for SpeculativeOutputError
impl Display for SpeculativeOutputError
impl Eq for SpeculativeOutputError
Source§impl Error for SpeculativeOutputError
impl Error for SpeculativeOutputError
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 SpeculativeOutputError
impl PartialEq for SpeculativeOutputError
impl StructuralPartialEq for SpeculativeOutputError
Auto Trait Implementations§
impl Freeze for SpeculativeOutputError
impl RefUnwindSafe for SpeculativeOutputError
impl Send for SpeculativeOutputError
impl Sync for SpeculativeOutputError
impl Unpin for SpeculativeOutputError
impl UnsafeUnpin for SpeculativeOutputError
impl UnwindSafe for SpeculativeOutputError
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