pub enum SessionLifecycle {
Created,
Ready,
Degraded,
Closed,
}Expand description
Session lifecycle states
Variants§
Created
Session created but not initialized
Ready
Session initialized and ready for requests
Degraded
Session encountered errors but still operational
Closed
Session closed
Implementations§
Source§impl SessionLifecycle
impl SessionLifecycle
Sourcepub fn can_accept_requests(&self) -> bool
pub fn can_accept_requests(&self) -> bool
Check if session can accept requests
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if session is healthy
Trait Implementations§
Source§impl Clone for SessionLifecycle
impl Clone for SessionLifecycle
Source§fn clone(&self) -> SessionLifecycle
fn clone(&self) -> SessionLifecycle
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionLifecycle
impl Debug for SessionLifecycle
Source§impl PartialEq for SessionLifecycle
impl PartialEq for SessionLifecycle
impl Copy for SessionLifecycle
impl Eq for SessionLifecycle
impl StructuralPartialEq for SessionLifecycle
Auto Trait Implementations§
impl Freeze for SessionLifecycle
impl RefUnwindSafe for SessionLifecycle
impl Send for SessionLifecycle
impl Sync for SessionLifecycle
impl Unpin for SessionLifecycle
impl UnwindSafe for SessionLifecycle
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