pub enum OdinError {
Show 14 variants
Configuration(String),
Network(String),
Protocol(String),
Rule(String),
Message(String),
Serialization(String),
Authentication(String),
Timeout(String),
Connection(String),
InvalidState(String),
NotFound(String),
PermissionDenied(String),
RateLimitExceeded(String),
Internal(String),
}Expand description
Error types for ODIN Protocol
Variants§
Configuration(String)
Configuration error
Network(String)
Network communication error
Protocol(String)
Protocol-level error
Rule(String)
Rule engine error
Message(String)
Message handling error
Serialization(String)
Serialization/deserialization error
Authentication(String)
Authentication error
Timeout(String)
Timeout error
Connection(String)
Connection error
InvalidState(String)
Invalid state error
NotFound(String)
Resource not found error
PermissionDenied(String)
Permission denied error
RateLimitExceeded(String)
Rate limit exceeded error
Internal(String)
Internal error
Implementations§
Source§impl OdinError
impl OdinError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if error is retryable
Sourcepub fn category(&self) -> ErrorCategory
pub fn category(&self) -> ErrorCategory
Get error category
Trait Implementations§
Source§impl Error for OdinError
impl Error for OdinError
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 OdinError
impl RefUnwindSafe for OdinError
impl Send for OdinError
impl Sync for OdinError
impl Unpin for OdinError
impl UnwindSafe for OdinError
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