pub enum PermissionError {
RequestNotFound(String),
ChannelClosed,
StoreSave(GrantStoreError),
}Expand description
Errors that can occur during permission operations
Variants§
RequestNotFound(String)
Permission request not found (expired or invalid ID)
ChannelClosed
Failed to send response on channel (receiver dropped)
StoreSave(GrantStoreError)
Failed to save grant to store
Trait Implementations§
Source§impl Debug for PermissionError
impl Debug for PermissionError
Source§impl Display for PermissionError
impl Display for PermissionError
Source§impl Error for PermissionError
impl Error for PermissionError
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<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 PermissionError
impl !RefUnwindSafe for PermissionError
impl Send for PermissionError
impl Sync for PermissionError
impl Unpin for PermissionError
impl !UnwindSafe for PermissionError
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