pub enum SessionError {
Config(ConfigError),
Token(TokenError),
Renewal(RenewalError),
Repository(RepositoryError),
Revocation(RevocationError),
Unimplemented {
message: String,
},
}Expand description
Root error type for framework-agnostic session workflows.
Variants§
Config(ConfigError)
Configuration is invalid or internally inconsistent.
Token(TokenError)
Token generation, hashing, validation, or rotation failed.
Renewal(RenewalError)
Renewal coordination or policy evaluation failed.
Repository(RepositoryError)
Session state could not be persisted, loaded, or atomically updated.
Revocation(RevocationError)
Logout or revocation failed.
Unimplemented
Fallback error for unsupported or unavailable session functionality.
Implementations§
Source§impl SessionError
impl SessionError
Sourcepub fn unimplemented(message: impl Into<String>) -> Self
pub fn unimplemented(message: impl Into<String>) -> Self
Creates an error for unsupported or unavailable session behavior.
Trait Implementations§
Source§impl Clone for SessionError
impl Clone for SessionError
Source§fn clone(&self) -> SessionError
fn clone(&self) -> SessionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
Source§impl Error for SessionError
impl Error for SessionError
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<ConfigError> for SessionError
impl From<ConfigError> for SessionError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<RenewalError> for SessionError
impl From<RenewalError> for SessionError
Source§fn from(source: RenewalError) -> Self
fn from(source: RenewalError) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryError> for SessionError
impl From<RepositoryError> for SessionError
Source§fn from(source: RepositoryError) -> Self
fn from(source: RepositoryError) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryError> for SessionError
impl From<RepositoryError> for SessionError
Source§fn from(value: RepositoryError) -> Self
fn from(value: RepositoryError) -> Self
Converts to this type from the input type.
Source§impl From<RevocationError> for SessionError
impl From<RevocationError> for SessionError
Source§fn from(source: RevocationError) -> Self
fn from(source: RevocationError) -> Self
Converts to this type from the input type.
Source§impl From<TokenError> for SessionError
impl From<TokenError> for SessionError
Source§fn from(source: TokenError) -> Self
fn from(source: TokenError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionError
impl PartialEq for SessionError
Source§fn eq(&self, other: &SessionError) -> bool
fn eq(&self, other: &SessionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SessionError
impl StructuralPartialEq for SessionError
Auto Trait Implementations§
impl Freeze for SessionError
impl RefUnwindSafe for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnsafeUnpin for SessionError
impl UnwindSafe for SessionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.