pub enum GrantStoreError {
Read(String),
Write(String),
Io(Error),
Json(Error),
}Expand description
Errors that can occur in grant store operations.
Variants§
Read(String)
Failed to read grants from storage.
Write(String)
Failed to write grants to storage.
Io(Error)
IO error during storage operations.
Json(Error)
JSON serialization/deserialization error.
Trait Implementations§
Source§impl Debug for GrantStoreError
impl Debug for GrantStoreError
Source§impl Display for GrantStoreError
impl Display for GrantStoreError
Source§impl Error for GrantStoreError
impl Error for GrantStoreError
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<Error> for GrantStoreError
impl From<Error> for GrantStoreError
Source§impl From<Error> for GrantStoreError
impl From<Error> for GrantStoreError
Source§impl From<GrantStoreError> for Error
impl From<GrantStoreError> for Error
Source§fn from(err: GrantStoreError) -> Self
fn from(err: GrantStoreError) -> Self
Converts to this type from the input type.
Source§impl From<GrantStoreError> for PermissionError
impl From<GrantStoreError> for PermissionError
Source§fn from(source: GrantStoreError) -> Self
fn from(source: GrantStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GrantStoreError
impl !RefUnwindSafe for GrantStoreError
impl Send for GrantStoreError
impl Sync for GrantStoreError
impl Unpin for GrantStoreError
impl !UnwindSafe for GrantStoreError
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