pub enum TeamError {
Show 16 variants
TeamNotFound(String),
MemberNotFound(String),
PermissionDenied(String),
RuleValidationFailed(String),
ConfigError(String),
StorageError(String),
LearningError(String),
PermissionsError(String),
SerializationError(Error),
YamlError(Error),
IoError(Error),
InvalidRole(String),
InvalidScope(String),
ConcurrentModification,
Timeout,
Internal(String),
}Expand description
Errors that can occur in team operations
Variants§
TeamNotFound(String)
MemberNotFound(String)
PermissionDenied(String)
RuleValidationFailed(String)
ConfigError(String)
StorageError(String)
LearningError(String)
PermissionsError(String)
SerializationError(Error)
YamlError(Error)
IoError(Error)
InvalidRole(String)
InvalidScope(String)
ConcurrentModification
Timeout
Internal(String)
Trait Implementations§
Source§impl Error for TeamError
impl Error for TeamError
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 TeamError
impl !RefUnwindSafe for TeamError
impl Send for TeamError
impl Sync for TeamError
impl Unpin for TeamError
impl !UnwindSafe for TeamError
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