pub enum AuditResult {
Success,
Blocked {
reason: String,
},
Error {
message: String,
},
Timeout,
Rollback {
restored: usize,
deleted: usize,
},
}Expand description
Outcome of a tool invocation, serialized as a tagged JSON object.
The type field selects the variant; additional fields are present only for the
relevant variants.
§Serialization
{"type":"success"}
{"type":"blocked","reason":"sudo"}
{"type":"error","message":"exec failed"}
{"type":"timeout"}
{"type":"rollback","restored":3,"deleted":1}Variants§
Success
The tool executed successfully.
Blocked
The tool invocation was blocked by policy before execution.
Error
The tool attempted execution but failed with an error.
Timeout
The tool exceeded its configured timeout.
Rollback
A transactional rollback was performed after a failed execution.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditResult
impl RefUnwindSafe for AuditResult
impl Send for AuditResult
impl Sync for AuditResult
impl Unpin for AuditResult
impl UnsafeUnpin for AuditResult
impl UnwindSafe for AuditResult
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