pub enum AddSessionError {
Duplicate,
Lifecycle(LifecycleError),
}
Expand description
Errors that can occur when adding a session
Variants§
Duplicate
The provided session metadata (id, data) is already in use.
Lifecycle(LifecycleError)
Lifecycle error
Trait Implementations§
Source§impl Debug for AddSessionError
impl Debug for AddSessionError
Source§impl Display for AddSessionError
impl Display for AddSessionError
Source§impl Error for AddSessionError
impl Error for AddSessionError
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<LifecycleError> for AddSessionError
impl From<LifecycleError> for AddSessionError
Source§fn from(source: LifecycleError) -> Self
fn from(source: LifecycleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AddSessionError
impl RefUnwindSafe for AddSessionError
impl Send for AddSessionError
impl Sync for AddSessionError
impl Unpin for AddSessionError
impl UnwindSafe for AddSessionError
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