pub enum ContextBuilderError {
MissingPublicContext {
has_internal: bool,
},
MissingInternalContext {
has_public: bool,
},
}Expand description
Error type for context builder failures.
§Diagnostic Context
Each variant includes information about what was missing and the state of the builder when the error occurred, enabling better debugging.
Variants§
MissingPublicContext
Public context was not set before building.
This means neither public_lie() nor public_truth() was called.
MissingInternalContext
Internal context was not set before building.
This means none of internal_diagnostic(), internal_sensitive(),
or internal_lie() were called.
Trait Implementations§
Source§impl Clone for ContextBuilderError
impl Clone for ContextBuilderError
Source§fn clone(&self) -> ContextBuilderError
fn clone(&self) -> ContextBuilderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextBuilderError
impl Debug for ContextBuilderError
Source§impl Display for ContextBuilderError
impl Display for ContextBuilderError
Source§impl Error for ContextBuilderError
impl Error for ContextBuilderError
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()
Source§impl PartialEq for ContextBuilderError
impl PartialEq for ContextBuilderError
impl Eq for ContextBuilderError
impl StructuralPartialEq for ContextBuilderError
Auto Trait Implementations§
impl Freeze for ContextBuilderError
impl RefUnwindSafe for ContextBuilderError
impl Send for ContextBuilderError
impl Sync for ContextBuilderError
impl Unpin for ContextBuilderError
impl UnwindSafe for ContextBuilderError
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