error
Module: control::error
Section titled “Module: control::error”Contents
Section titled “Contents”Structs
ErrorMessage- Snapshot-friendly error message.
Enums
AuditSourceError- Error emitted by the audit source plumbing.ControlError- Error recorded by the control surface and rendered by status-aware views.RuntimeError- Runtime error that is not tied to a specific input source.
firma_tui::control::error::AuditSourceError
Section titled “firma_tui::control::error::AuditSourceError”Enum
Error emitted by the audit source plumbing.
Variants:
ResolvePath{ source: ErrorMessage }- The audit log path could not be resolved from config or state dir.TailerStopped- The tailer stopped before the UI stopped consuming audit rows.ForwarderStopped- The audit forwarding thread stopped before the UI stopped consuming rows.ParseLine{ source: ErrorMessage }- A raw audit line could not be parsed into the monitor-lite shape.Operation{ message: String }- Generic audit source failure.
Methods:
fn operation<impl Into<String>>(message: impl Trait) -> Self- Creates a generic audit source failure.
Traits: Eq
Trait Implementations:
- From
fn from(message: String) -> Self
- From
fn from(message: &str) -> Self
- PartialEq
fn eq(self: &Self, other: &AuditSourceError) -> bool
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
- Error
fn source(self: &Self) -> ::core::option::Option<&dyn ::thiserror::__private18::Error>
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> AuditSourceError
firma_tui::control::error::ControlError
Section titled “firma_tui::control::error::ControlError”Enum
Error recorded by the control surface and rendered by status-aware views.
Variants:
Runtime{ error: Box<RuntimeError> }- Runtime failure not tied to a specific source.AuditSource{ error: Box<AuditSourceError> }- Audit source failure.
Methods:
fn runtime<impl Into<String>>(message: impl Trait) -> Self- Creates a runtime error from displayable text.fn audit_source<impl Into<AuditSourceError>>(error: impl Trait) -> Self- Creates an audit source error.fn path(self: &Self) -> Option<&Path>- Path associated with this error, if there is one.fn message(self: &Self) -> String- User-facing error message.
Traits: Eq, Error
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> ControlError
- PartialEq
fn eq(self: &Self, other: &ControlError) -> bool
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
firma_tui::control::error::ErrorMessage
Section titled “firma_tui::control::error::ErrorMessage”Struct
Snapshot-friendly error message.
It stores rendered error text for sources whose concrete error type is not cloneable or comparable, while still keeping the surrounding error variant typed.
Methods:
fn new<impl Into<String>>(message: impl Trait) -> Self- Creates a message from displayable text.fn capture<impl fmt::Display>(error: impl Trait) -> Self- Captures the display text of an error-like value.
Traits: Eq, Error
Trait Implementations:
- PartialEq
fn eq(self: &Self, other: &ErrorMessage) -> bool
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> ErrorMessage
firma_tui::control::error::RuntimeError
Section titled “firma_tui::control::error::RuntimeError”Enum
Runtime error that is not tied to a specific input source.
Variants:
Operation{ message: String }- Generic runtime operation failure.
Methods:
fn operation<impl Into<String>>(message: impl Trait) -> Self- Creates a generic runtime operation failure.
Traits: Error, Eq
Trait Implementations:
- PartialEq
fn eq(self: &Self, other: &RuntimeError) -> bool
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> RuntimeError