pub enum SessionErrorKind {
NotFound,
AlreadyExists,
Expired,
Terminated,
InvalidState {
current_state: String,
expected_state: String,
},
BandwidthExceeded {
used: u64,
limit: u64,
},
}
Expand description
Specific session error types
Variants§
NotFound
Session not found
AlreadyExists
Session already exists
Expired
Session expired
Terminated
Session terminated
InvalidState
Invalid session state for operation
Fields
BandwidthExceeded
Bandwidth limit exceeded for session
Trait Implementations§
Source§impl Clone for SessionErrorKind
impl Clone for SessionErrorKind
Source§fn clone(&self) -> SessionErrorKind
fn clone(&self) -> SessionErrorKind
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 SessionErrorKind
impl Debug for SessionErrorKind
Source§impl Display for SessionErrorKind
impl Display for SessionErrorKind
Source§impl PartialEq for SessionErrorKind
impl PartialEq for SessionErrorKind
impl Eq for SessionErrorKind
impl StructuralPartialEq for SessionErrorKind
Auto Trait Implementations§
impl Freeze for SessionErrorKind
impl RefUnwindSafe for SessionErrorKind
impl Send for SessionErrorKind
impl Sync for SessionErrorKind
impl Unpin for SessionErrorKind
impl UnwindSafe for SessionErrorKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.