# `SmolBox.Result`
[🔗](https://github.com/hfiguera/smolbox/blob/v0.1.2/lib/smolbox/result.ex#L1)

Observed command output and exit status. A nonzero exit is still an observed result.

Buffered execution uses `:bytes`; SSE output uses `:lossy_utf8` and must not
be used to preserve arbitrary binary output. This result does not
assert application success, artifact collection, or machine cleanup.

# `t`

```elixir
@type t() :: %SmolBox.Result{
  encoding: :bytes | :lossy_utf8,
  exit_code: integer(),
  stderr: binary(),
  stdout: binary(),
  truncated: boolean()
}
```

# `from_wire`

```elixir
@spec from_wire(term(), pos_integer()) :: {:ok, t()} | {:error, SmolBox.Error.t()}
```

Decode byte-exact buffered output; lossy fallback is deliberately unsupported.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
