pub struct SideEffects {
pub read: bool,
pub write: bool,
pub external: bool,
pub destructive: bool,
}Expand description
Side effects a tool may produce.
Used by ToolExecutionStrategy::Auto to determine safe concurrency.
Fields§
§read: boolTool performs read operations (safe to run concurrently).
write: boolTool performs write operations (requires serialization).
external: boolTool makes external API calls.
destructive: boolTool may delete or destroy resources.
Implementations§
Source§impl SideEffects
impl SideEffects
Sourcepub const fn is_concurrency_safe(&self) -> bool
pub const fn is_concurrency_safe(&self) -> bool
Returns true if the tool is safe to run concurrently with other tools.
Trait Implementations§
Source§impl Clone for SideEffects
impl Clone for SideEffects
Source§fn clone(&self) -> SideEffects
fn clone(&self) -> SideEffects
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SideEffects
Source§impl Debug for SideEffects
impl Debug for SideEffects
Source§impl Default for SideEffects
impl Default for SideEffects
Source§fn default() -> SideEffects
fn default() -> SideEffects
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SideEffects
impl RefUnwindSafe for SideEffects
impl Send for SideEffects
impl Sync for SideEffects
impl Unpin for SideEffects
impl UnsafeUnpin for SideEffects
impl UnwindSafe for SideEffects
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