pub enum WireError {
Parse(String),
Runtime(String),
}Expand description
The two failure classes the engine distinguishes, carrying the message the
wire contract puts on the wire. Callers construct the correct variant
(Parse vs Runtime) so the distinction is honest on the wire even though
today’s encoders collapse both to the same bytes — a future bson kind
field will surface it. Callers map the class to their surface (exit codes
2/3 for the CLI); the message bytes come from core::run_query.
Variants§
Auto Trait Implementations§
impl Freeze for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
impl UnwindSafe for WireError
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