pub struct AtmError {
pub code: AtmErrorCode,
pub message: String,
pub recovery: Option<String>,
pub source: Option<Box<dyn StdError + Send + Sync>>,
pub backtrace: Backtrace,
/* private fields */
}Fields§
§code: AtmErrorCode§message: String§recovery: Option<String>§source: Option<Box<dyn StdError + Send + Sync>>§backtrace: BacktraceImplementations§
Source§impl AtmError
impl 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_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>) -> Self
pub fn with_source<E>(self, source: E) -> Self
Sourcepub fn backtrace(&self) -> Option<&Backtrace>
pub fn backtrace(&self) -> Option<&Backtrace>
Return the captured backtrace when one is available.
pub fn address_parse(message: impl Into<String>) -> Self
pub fn team_not_found(team: &str) -> Self
pub fn agent_not_found(agent: &str, team: &str) -> Self
pub fn validation(message: impl Into<String>) -> Self
pub fn missing_document(message: impl Into<String>) -> Self
pub fn file_policy(message: impl Into<String>) -> Self
pub fn mailbox_read(message: impl Into<String>) -> Self
pub fn mailbox_lock(message: impl Into<String>) -> Self
pub fn mailbox_lock_read_only_filesystem( operation: impl Display, path: &Path, ) -> Self
pub fn mailbox_lock_timeout(path: &Path) -> Self
pub fn mailbox_write(message: impl Into<String>) -> Self
pub fn observability_emit(message: impl Into<String>) -> Self
pub fn observability_bootstrap(message: impl Into<String>) -> Self
pub fn observability_query(message: impl Into<String>) -> Self
pub fn observability_follow(message: impl Into<String>) -> Self
pub fn observability_health(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Error for AtmError
impl Error for AtmError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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 Send for AtmError
impl Sync for AtmError
impl Unpin for AtmError
impl UnsafeUnpin for AtmError
impl !UnwindSafe 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