# control.BlockResult.refusal_for

- **Module:** control.BlockResult
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/control.rs#L422
- **Page:** https://libtmux.org/en/rs/latest/reference/control-blockresult-refusal_for/

```
control.BlockResult.refusal_for(self, operation: &'static str) -> Option<Error>
```

Classify an error block as a refusal for a named operation.

Use a fixed operation name without targets or argument values. Output
is withheld when the command carried sensitive input.

Returns `None` when tmux closed the block successfully.
