pub enum BriefError {
Source {
source_id: String,
message: String,
},
Rejected(String),
BudgetUnsatisfiable {
needed: usize,
available: usize,
},
Timeout {
source_id: String,
timeout_ms: u64,
},
}Expand description
Top-level error returned by BriefBuilder operations.
Variants§
Source
One of the configured sources failed to contribute.
Fields
Rejected(String)
Governance rejected the draft brief.
BudgetUnsatisfiable
Token budget could not be satisfied even after pruning to priority floors.
Fields
Timeout
A source operation timed out.
Trait Implementations§
Source§impl Debug for BriefError
impl Debug for BriefError
Source§impl Display for BriefError
impl Display for BriefError
Source§impl Error for BriefError
impl Error for BriefError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BriefError
impl RefUnwindSafe for BriefError
impl Send for BriefError
impl Sync for BriefError
impl Unpin for BriefError
impl UnsafeUnpin for BriefError
impl UnwindSafe for BriefError
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