pub enum SpecError {
Unimplemented {
kind: CrdtKind,
},
NoWireForm {
op: &'static str,
},
}Expand description
The typed error surface for the border. Every unimplemented engine arm
returns one of these (no format!() — thiserror’s #[error] is the typed
emission surface, allowed surface #2).
Variants§
Unimplemented
A CrdtKind arm has a type but no realized interpreter yet (M2 work).
Carries the kind so a consumer sees exactly which engine is missing.
NoWireForm
A wire operation (local_edit/apply_update) was attempted on the M0a
degenerate doc, which has no wire form.
Trait Implementations§
Source§impl Error for SpecError
impl Error for SpecError
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 SpecError
impl RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl UnwindSafe for SpecError
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