Struct edgedb_tokio::Error
source · pub struct Error(_);
Expand description
Error type returned from any EdgeDB call.
Implementations§
source§impl Error
impl Error
pub fn is<T>(&self) -> boolwhere T: ErrorKind,
pub fn has_tag(&self, tag: Tag) -> bool
pub fn chain(&self) -> Chain<'_>
pub fn context<S>(self, msg: S) -> Errorwhere S: Into<Cow<'static, str>>,
pub fn headers(&self) -> &HashMap<u16, Bytes, RandomState>
pub fn with_headers(self, headers: HashMap<u16, Bytes, RandomState>) -> Error
pub fn kind_name(&self) -> &str
pub fn kind_debug(&self) -> impl Display
pub fn initial_message(&self) -> Option<&str>
pub fn contexts(&self) -> impl DoubleEndedIterator
pub fn hint(&self) -> Option<&str>
pub fn details(&self) -> Option<&str>
pub fn server_traceback(&self) -> Option<&str>
pub fn position_start(&self) -> Option<usize>
pub fn position_end(&self) -> Option<usize>
pub fn line(&self) -> Option<usize>
pub fn column(&self) -> Option<usize>
pub fn from_code(code: u32) -> Error
pub fn code(&self) -> u32
pub fn refine_kind<T>(self) -> Errorwhere T: ErrorKind,
pub fn set<T>(self, value: impl Into<<T as Field>::Value>) -> Errorwhere T: Field,
pub fn get<T>(&self) -> Option<&<T as Field>::Value>where T: Field,
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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