pub enum ExportError {
InvalidId(String),
TraceLogUnreadable(PathBuf, Error),
InvalidRecord {
line: usize,
reason: String,
},
NotFound(String),
UnsafeTarget(PathBuf, String),
ContentOptInMissing,
CaptureMissing(PathBuf),
CaptureExpired(PathBuf),
CaptureInvalid(PathBuf, String),
CaptureOverBudget,
BoundExceeded {
what: &'static str,
limit: u64,
},
Io(Error),
}Expand description
Typed export failure. Every variant is metadata-only (paths, counts).
Variants§
InvalidId(String)
The given ID is not a valid bounded TraceId.
TraceLogUnreadable(PathBuf, Error)
The trace log does not exist / is unreadable.
InvalidRecord
A persisted line failed RequestTrace validation (fail closed:
export refuses a log it cannot fully validate).
NotFound(String)
No record matched the requested turn/request ID.
UnsafeTarget(PathBuf, String)
Refusing to write through a symlink or over an existing file.
ContentOptInMissing
Content export invoked without the explicit runtime opt-in flag.
CaptureMissing(PathBuf)
No capture bundle exists for this ID (content export is fail-closed: it never reconstructs prompts from sessions).
CaptureExpired(PathBuf)
The capture bundle expired (it is deleted, not exported).
CaptureInvalid(PathBuf, String)
The capture bundle is malformed or carries the wrong schema tag.
CaptureOverBudget
The capture recorded an over-budget body: nothing to export.
BoundExceeded
A streaming read bound was exceeded (per-line or total bytes).
Io(Error)
Trait Implementations§
Source§impl Debug for ExportError
impl Debug for ExportError
Source§impl Display for ExportError
impl Display for ExportError
Source§impl Error for ExportError
impl Error for ExportError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ExportError
impl !UnwindSafe for ExportError
impl Freeze for ExportError
impl Send for ExportError
impl Sync for ExportError
impl Unpin for ExportError
impl UnsafeUnpin for ExportError
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.