Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Rust API

Rust documentation

server.Server.new

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
new ( ) → Result<Self, Error>
method [source]
method [source]
new

Construct a server from the captured default endpoint context.

Errors

Returns an error when the working directory or socket root cannot be captured.

Examples

let server = libtmux::Server::new()?;
assert!(server.socket_path().is_absolute());

Discussed in Socket and servers

0 declared, 0 inherited

Esc

Type to search.