pub enum SpillDisposition {
NotConfigured,
Spilled(SpillRef),
Failed(SpillError),
}Expand description
Resolved outcome of attempting to spill an oversized observation.
Truncation must never silently lose the fact that full-output retention failed. This enum makes the three possible states explicit so the marker renderer can distinguish “no sink configured” (nothing was promised) from “sink failed” (retention was promised and did not happen), and surface the latter in-band.
Variants§
NotConfigured
No OutputSpillSink was configured; omitted bytes were never retained.
Spilled(SpillRef)
The full output was retained and is recallable via the returned handle.
Failed(SpillError)
A sink was configured but failed; the omitted bytes are unrecoverable.
Implementations§
Trait Implementations§
Source§impl Clone for SpillDisposition
impl Clone for SpillDisposition
Source§impl Debug for SpillDisposition
impl Debug for SpillDisposition
impl Eq for SpillDisposition
Source§impl PartialEq for SpillDisposition
impl PartialEq for SpillDisposition
impl StructuralPartialEq for SpillDisposition
Auto Trait Implementations§
impl Freeze for SpillDisposition
impl RefUnwindSafe for SpillDisposition
impl Send for SpillDisposition
impl Sync for SpillDisposition
impl Unpin for SpillDisposition
impl UnsafeUnpin for SpillDisposition
impl UnwindSafe for SpillDisposition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.