# LibTmux.OperationResult

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/batches.jl#L24
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-operationresult/

```
LibTmux.OperationResult(
    index::Int64,
    command::LibTmux.TmuxCommand,
    status::Symbol,
    result::Union{Nothing, LibTmux.CommandResult, LibTmux.ControlResult},
    error::Union{Nothing, Exception},
    acknowledged::Bool,
    completed::Bool
)

LibTmux.OperationResult(index, command, status, result, error, acknowledged, completed)
```

One input-indexed outcome. `status` is `:completed`, `:failed`, `:skipped`, or `:unknown`. `acknowledged` records a response; `completed` records queue completion for an audited synchronous command. `result` and `error` retain the evidence. Background application work is never inferred complete.

## Methods

### `OperationResult` (overload 1)

```julia
LibTmux.OperationResult(
    index::Int64,
    command::LibTmux.TmuxCommand,
    status::Symbol,
    result::Union{Nothing, LibTmux.CommandResult, LibTmux.ControlResult},
    error::Union{Nothing, Exception},
    acknowledged::Bool,
    completed::Bool
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/batches.jl#L31).

### `LibTmux.OperationResult(index, command, status, result, error, acknowledged, completed)`

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/batches.jl#L31).

## Parameters

- `index` (`Int64`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 1]`)
- `command` (`LibTmux.TmuxCommand`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 1]`)
- `status` (`Symbol`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 1]`)
- `result` (`Union{Nothing, LibTmux.CommandResult, LibTmux.ControlResult}`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 1]`)
- `error` (`Union{Nothing, Exception}`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 1]`)
- `acknowledged` (`Bool`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 1]`)
- `completed` (`Bool`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 1]`)
- `index` (`Any`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 2]`)
- `command` (`Any`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 2]`)
- `status` (`Any`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 2]`)
- `result` (`Any`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 2]`)
- `error` (`Any`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 2]`)
- `acknowledged` (`Any`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 2]`)
- `completed` (`Any`) (for `OperationResult(index, command, status, result, error, acknowledged, completed) [overload 2]`)

## Members

### Other members

- `acknowledged` (property)
- `command` (property)
- `completed` (property)
- `error` (property)
- `index` (property)
- `result` (property)
- `status` (property)
