pub struct ElicitError(/* private fields */);Expand description
Elicitation error with location tracking.
This type wraps all error conditions and provides automatic conversion
from underlying error types through the ? operator.
Implementations§
Source§impl ElicitError
impl ElicitError
Sourcepub fn kind(&self) -> &ElicitErrorKind
pub fn kind(&self) -> &ElicitErrorKind
Returns a reference to the underlying error kind.
Sourcepub fn new(kind: ElicitErrorKind) -> Self
pub fn new(kind: ElicitErrorKind) -> Self
Create a new error with location tracking.
Trait Implementations§
Source§impl Clone for ElicitError
impl Clone for ElicitError
Source§fn clone(&self) -> ElicitError
fn clone(&self) -> ElicitError
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 ElicitError
impl Debug for ElicitError
Source§impl Display for ElicitError
impl Display for ElicitError
Source§impl Error for ElicitError
impl Error for ElicitError
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<ElicitErrorKind> for ElicitError
impl From<ElicitErrorKind> for ElicitError
Source§fn from(kind: ElicitErrorKind) -> Self
fn from(kind: ElicitErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<ElicitationError> for ElicitError
impl From<ElicitationError> for ElicitError
Source§fn from(err: ElicitationError) -> Self
fn from(err: ElicitationError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ElicitError
impl From<Error> for ElicitError
Source§impl From<ErrorData> for ElicitError
impl From<ErrorData> for ElicitError
Source§impl From<ServiceError> for ElicitError
impl From<ServiceError> for ElicitError
Source§fn from(err: ServiceError) -> Self
fn from(err: ServiceError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for ElicitError
impl From<ValidationError> for ElicitError
Source§fn from(err: ValidationError) -> Self
fn from(err: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ElicitError
impl RefUnwindSafe for ElicitError
impl Send for ElicitError
impl Sync for ElicitError
impl Unpin for ElicitError
impl UnwindSafe for ElicitError
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