pub struct State<T: ?Sized>(/* private fields */);Expand description
Shared application state injected into a typed Tool handler.
State is host-only. It is not represented in the Tool’s input schema, model arguments, transcript, or write-ahead Effect input.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for State<T>where
T: ?Sized,
impl<T> RefUnwindSafe for State<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for State<T>
impl<T> Sync for State<T>
impl<T> Unpin for State<T>where
T: ?Sized,
impl<T> UnsafeUnpin for State<T>where
T: ?Sized,
impl<T> UnwindSafe for State<T>where
T: RefUnwindSafe + ?Sized,
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