pub enum SessionError {
NotFound {
id: String,
},
InvalidState {
state: String,
operation: String,
},
LockError {
reason: String,
},
CreationFailed {
reason: String,
},
TerminationFailed {
reason: String,
},
ResourceError {
reason: String,
},
ContextBridgeError {
reason: String,
},
PersistenceError {
reason: String,
},
PoolError {
reason: String,
},
MemoryError {
reason: String,
},
Other(Error),
}Expand description
Errors that can occur during session operations
Variants§
NotFound
Session with the specified ID was not found
InvalidState
Session is in an invalid state for the requested operation
LockError
Failed to acquire a lock on session data
CreationFailed
Session creation failed
TerminationFailed
Session termination failed
ResourceError
Resource monitoring error
ContextBridgeError
Context bridge error
PersistenceError
Persistence error
PoolError
Pool management error
MemoryError
Memory management error
Other(Error)
Generic error wrapping other error types
Trait Implementations§
Source§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()
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> 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.