Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

Rust API

constant libtmux-rs latest

Error.NoEffect

A creating command exited 0 without creating anything.

Source and package
Qualified name
libtmux::error::Error::NoEffect
Module
error
Declared in
Error
Package
libtmux
Source
crates/libtmux/src/error.rs
NoEffect { command: &'static str, stderr: String, }

Description#

tmux -S <dir>/missing/sock new-session ... prints error creating <path> (No such file or directory) on stderr and exits 0 with empty stdout: exit 0 usually means the command ran, so this is its own variant rather than Self::CommandFailed, which would print the exit code as Some(0) beside the word "rejected" -- a contradiction -- and rather than Self::AfterEffect, which would claim an effect that never happened.

Fields2#

NoEffect fields
NameTypeDescription
command &'static str The tmux command that exited 0 without effect.
stderr String The message tmux printed on stderr.
Esc

Type to search.

Reference previewOpen reference