pub struct BackendControl {
pub cancellation_token: Option<CancellationToken>,
pub decision_rx: Option<UnboundedReceiver<Vec<(String, ToolCallResume)>>>,
}Expand description
Cooperative runtime controls exposed to a backend implementation.
Fields§
§cancellation_token: Option<CancellationToken>§decision_rx: Option<UnboundedReceiver<Vec<(String, ToolCallResume)>>>Trait Implementations§
Source§impl Default for BackendControl
impl Default for BackendControl
Source§fn default() -> BackendControl
fn default() -> BackendControl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackendControl
impl !RefUnwindSafe for BackendControl
impl Send for BackendControl
impl Sync for BackendControl
impl Unpin for BackendControl
impl UnsafeUnpin for BackendControl
impl !UnwindSafe for BackendControl
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