pub struct EmergencyInternalFailure { /* private fields */ }Expand description
Closed emergency failure when an internal incident cannot be identified.
This value is intentionally distinct from PublicError: an internal
public error requires a real fresh IncidentId. It carries no identifier,
arbitrary text, diagnostic source, or protected operation result.
ⓘ
use riffdb_errors::{EmergencyInternalFailure, IncidentIdSourceError, PublicError};
let emergency = EmergencyInternalFailure::from(IncidentIdSourceError);
let _: PublicError = emergency.into();Implementations§
Source§impl EmergencyInternalFailure
impl EmergencyInternalFailure
Sourcepub const fn safe_message(self) -> &'static str
pub const fn safe_message(self) -> &'static str
Returns the only fixed message safe at an emergency transport boundary.
Sourcepub const fn class(self) -> ErrorClass
pub const fn class(self) -> ErrorClass
Returns the protocol-neutral emergency classification.
Sourcepub const fn recovery_action(self) -> RecoveryAction
pub const fn recovery_action(self) -> RecoveryAction
Returns the only safe recovery guidance for this readiness failure.
Trait Implementations§
Source§impl Clone for EmergencyInternalFailure
impl Clone for EmergencyInternalFailure
impl Copy for EmergencyInternalFailure
Source§impl Debug for EmergencyInternalFailure
impl Debug for EmergencyInternalFailure
Source§impl Display for EmergencyInternalFailure
impl Display for EmergencyInternalFailure
impl Eq for EmergencyInternalFailure
Source§impl Error for EmergencyInternalFailure
impl Error for EmergencyInternalFailure
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 From<IncidentIdSourceError> for EmergencyInternalFailure
impl From<IncidentIdSourceError> for EmergencyInternalFailure
Source§fn from(_: IncidentIdSourceError) -> Self
fn from(_: IncidentIdSourceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EmergencyInternalFailure
impl PartialEq for EmergencyInternalFailure
impl StructuralPartialEq for EmergencyInternalFailure
Auto Trait Implementations§
impl Freeze for EmergencyInternalFailure
impl RefUnwindSafe for EmergencyInternalFailure
impl Send for EmergencyInternalFailure
impl Sync for EmergencyInternalFailure
impl Unpin for EmergencyInternalFailure
impl UnsafeUnpin for EmergencyInternalFailure
impl UnwindSafe for EmergencyInternalFailure
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