pub struct AtmError {
pub code: AtmErrorCode,
pub kind: AtmErrorKind,
pub message: String,
pub recovery: Vec<String>,
pub source: Option<Box<dyn Error + Send + Sync>>,
pub backtrace: Backtrace,
}Fields§
§code: AtmErrorCode§kind: AtmErrorKind§message: String§recovery: Vec<String>§source: Option<Box<dyn Error + Send + Sync>>§backtrace: BacktraceImplementations§
Source§impl AtmError
impl AtmError
pub fn new(kind: AtmErrorKind, message: impl Into<String>) -> AtmError
pub fn new_with_code( code: AtmErrorCode, kind: AtmErrorKind, message: impl Into<String>, ) -> AtmError
pub fn is_config(&self) -> bool
pub fn is_address(&self) -> bool
pub fn is_missing_document(&self) -> bool
pub fn is_identity(&self) -> bool
pub fn is_team_not_found(&self) -> bool
pub fn is_agent_not_found(&self) -> bool
pub fn is_mailbox_read(&self) -> bool
pub fn is_mailbox_lock(&self) -> bool
pub fn is_mailbox_write(&self) -> bool
pub fn is_file_policy(&self) -> bool
pub fn is_internal(&self) -> bool
pub fn is_validation(&self) -> bool
pub fn is_serialization(&self) -> bool
pub fn is_timeout(&self) -> bool
pub fn is_observability_emit(&self) -> bool
pub fn is_observability_bootstrap(&self) -> bool
pub fn is_observability_query(&self) -> bool
pub fn is_observability_follow(&self) -> bool
pub fn is_observability_health(&self) -> bool
pub fn with_recovery(self, recovery: impl Into<String>) -> AtmError
pub fn primary_recovery(&self) -> Option<&str>
pub fn with_source<E>(self, source: E) -> AtmError
pub fn backtrace(&self) -> Option<&Backtrace>
pub fn atm_home_unresolved(message: impl Into<String>) -> AtmError
pub fn config(message: impl Into<String>) -> AtmError
pub fn address_parse(message: impl Into<String>) -> AtmError
pub fn identity_invalid(message: impl Into<String>) -> AtmError
pub fn identity_conflict(message: impl Into<String>) -> AtmError
pub fn member_already_exists(member: &str, team: &str) -> AtmError
pub fn member_not_found(member: &str, team: &str) -> AtmError
pub fn runtime_root_invalid(message: impl Into<String>) -> AtmError
pub fn runtime_bootstrap_refused(message: impl Into<String>) -> AtmError
pub fn socket_override_forbidden(message: impl Into<String>) -> AtmError
pub fn daemon_may_have_executed(message: impl Into<String>) -> AtmError
pub fn daemon_lifecycle_wedge(message: impl Into<String>) -> AtmError
pub fn daemon_advisory_session_already_registered( message: impl Into<String>, ) -> AtmError
pub fn daemon_advisory_session_not_registered( message: impl Into<String>, ) -> AtmError
pub fn daemon_advisory_session_cleanup_failed( message: impl Into<String>, ) -> AtmError
pub fn daemon_launch_gate_rejected(message: impl Into<String>) -> AtmError
pub fn daemon_serving_state_rejected(message: impl Into<String>) -> AtmError
pub fn daemon_stale_owner_recovery_failed( message: impl Into<String>, ) -> AtmError
pub fn daemon_auto_start_failed(message: impl Into<String>) -> AtmError
pub fn remote_delivery_outcome_unknown(message: impl Into<String>) -> AtmError
pub fn help_topic_not_found(message: impl Into<String>) -> AtmError
pub fn test_fake_transport_injection_failed( message: impl Into<String>, ) -> AtmError
pub fn team_invalid(message: impl Into<String>) -> AtmError
pub fn team_not_found(team: &str) -> AtmError
pub fn agent_not_found(agent: &str, team: &str) -> AtmError
pub fn validation(message: impl Into<String>) -> AtmError
pub fn self_addressed_send_invalid(message: impl Into<String>) -> AtmError
pub fn empty_nudge_template_body() -> AtmError
pub fn caller_context_request_invalid(message: impl Into<String>) -> AtmError
pub fn missing_document(message: impl Into<String>) -> AtmError
pub fn file_policy(message: impl Into<String>) -> AtmError
pub fn mailbox_read(message: impl Into<String>) -> AtmError
pub fn mailbox_lock(message: impl Into<String>) -> AtmError
pub fn mailbox_lock_read_only_filesystem( operation: impl Display, path: &Path, ) -> AtmError
pub fn mailbox_lock_timeout(path: &Path) -> AtmError
pub fn mailbox_write(message: impl Into<String>) -> AtmError
pub fn observability_emit(message: impl Into<String>) -> AtmError
pub fn observability_bootstrap(message: impl Into<String>) -> AtmError
pub fn observability_query(message: impl Into<String>) -> AtmError
pub fn observability_follow(message: impl Into<String>) -> AtmError
pub fn observability_health(message: impl Into<String>) -> AtmError
Trait Implementations§
Source§impl Error for AtmError
impl Error for AtmError
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 AtmError
impl !RefUnwindSafe for AtmError
impl !UnwindSafe for AtmError
impl Send for AtmError
impl Sync for AtmError
impl Unpin for AtmError
impl UnsafeUnpin for AtmError
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