Struct teo_result::Error
source · pub struct Error {
pub message: String,
pub meta_map: BTreeMap<String, Arc<dyn Any + Send + Sync>>,
}Fields§
§message: String§meta_map: BTreeMap<String, Arc<dyn Any + Send + Sync>>Implementations§
source§impl Error
impl Error
pub fn new(message: impl Into<String>) -> Self
pub fn prefix(&self, prefix: impl AsRef<str>) -> Self
pub fn message(&self) -> &str
pub fn insert_meta<T: 'static + Send + Sync>( &mut self, key: impl Into<String>, val: T )
pub fn get_meta<T: 'static + Send>(&self, key: &str) -> Option<&T>
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<Infallible> for Error
impl From<Infallible> for Error
source§fn from(_value: Infallible) -> Self
fn from(_value: Infallible) -> Self
Converts to this type from the input type.
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§
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