Enum carapax::session::CreateSessionError
source · pub enum CreateSessionError {
ManagerNotFound,
SessionIdNotFound,
}
Available on crate feature
session
only.Expand description
An error when creating a session.
Variants§
ManagerNotFound
Session manager not found in the crate::Context
.
SessionIdNotFound
Could not create a session ID.
Chat ID or User ID is missing in the crate::types::Update
.
Trait Implementations§
source§impl Debug for CreateSessionError
impl Debug for CreateSessionError
source§impl Display for CreateSessionError
impl Display for CreateSessionError
source§impl Error for CreateSessionError
impl Error for CreateSessionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CreateSessionError> for DialogueError
Available on crate feature dialogue
only.
impl From<CreateSessionError> for DialogueError
Available on crate feature
dialogue
only.source§fn from(err: CreateSessionError) -> Self
fn from(err: CreateSessionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateSessionError
impl RefUnwindSafe for CreateSessionError
impl Send for CreateSessionError
impl Sync for CreateSessionError
impl Unpin for CreateSessionError
impl UnwindSafe for CreateSessionError
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more