pub struct ErrorContext(/* private fields */);Expand description
Supplies extra context appended to selected tool error messages.
crate::Server places it in each request’s extensions. The callback
sees each tool error; when it returns Some(context), the message becomes
<message> (<context>) before ToolHandler::redact_error runs, so the
context is redacted too.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorContext
impl !UnwindSafe for ErrorContext
impl Freeze for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnsafeUnpin for ErrorContext
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