pub struct DevMcp { /* private fields */ }Expand description
DevMCP handle stored in app state.
Implementations§
Source§impl DevMcp
impl DevMcp
Sourcepub fn verbose_logging(self, verbose_logging: bool) -> Self
pub fn verbose_logging(self, verbose_logging: bool) -> Self
Enable or disable verbose internal logging for DevMCP operations.
Sourcepub fn fixtures(self, fixtures: impl IntoIterator<Item = FixtureSpec>) -> Self
pub fn fixtures(self, fixtures: impl IntoIterator<Item = FixtureSpec>) -> Self
Register fixture metadata for discovery and validation.
Sourcepub fn on_fixture<F>(self, handler: F) -> Self
pub fn on_fixture<F>(self, handler: F) -> Self
Register a callback that applies named fixtures to app state.
The handler is called directly from the tokio runtime when a fixture tool call arrives, removing the need for frame-driven polling.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns true if DevMCP automation is attached.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DevMcp
impl !RefUnwindSafe for DevMcp
impl Send for DevMcp
impl Sync for DevMcp
impl Unpin for DevMcp
impl UnsafeUnpin for DevMcp
impl !UnwindSafe for DevMcp
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