# control.ControlMode.send

- **Module:** control.ControlMode
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/control.rs#L527
- **Page:** https://libtmux.org/reference/rs/control-controlmode-send/

```
control.ControlMode.send(self, command: Command) -> Result<BlockResult, Error>
```

Send one command and wait for its result block.

# Errors

Returns an error when the command cannot be written as a control-mode
line, the connection has closed, or its deadline elapses while queued,
being written, or awaiting a response. Cancellation has the same write
boundary as [`ControlSender::send`].
