# server.Server.buffer_names

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L812
- **Page:** https://libtmux.org/reference/rs/server-server-buffer_names/

```
server.Server.buffer_names(self) -> Result<Vec<String>, Error>
```

List the paste buffer names.

A name containing a newline cannot be told apart from two names,
because tmux separates them with newlines and offers no framed form
for this listing. Names come from [`Server::set_buffer`], so a caller
that avoids newlines avoids the ambiguity.

# Errors

Returns an error when tmux refuses the listing.
