pub struct Envelope<'a> {
pub count: usize,
pub exhausted: bool,
pub solutions: &'a [RenderedSolution],
pub program_output: Option<&'a str>,
pub atoms: Option<&'a [String]>,
}Expand description
The fixed engine-output shape — the contract, made a type. Every encoding reads the same fields; only their byte encoding varies.
Fields§
§count: usize§exhausted: bool§solutions: &'a [RenderedSolution]§program_output: Option<&'a str>Captured write/1 bytes, when the sink is in capture mode. None when
output streamed to stdout (the CLI text path). Encodings that can’t
stream require the caller to have run in capture mode so this is Some.
atoms: Option<&'a [String]>The atom map (id → name, id = array index), when the bson output is
self-describing (--atoms). Lets a host decode bson term values (atom-
id-keyed TermBuf) from the single document — no external atom source.
Emitted post-query, so it covers query-introduced atoms too.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Envelope<'a>
impl<'a> RefUnwindSafe for Envelope<'a>
impl<'a> Send for Envelope<'a>
impl<'a> Sync for Envelope<'a>
impl<'a> Unpin for Envelope<'a>
impl<'a> UnsafeUnpin for Envelope<'a>
impl<'a> UnwindSafe for Envelope<'a>
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