[][src]Struct tmux_interface::clients_and_sessions::NewSession

pub struct NewSession<'a> {
    pub attach: Option<bool>,
    pub detached: Option<bool>,
    pub detach_other: Option<bool>,
    pub not_update_env: Option<bool>,
    pub print: Option<bool>,
    pub cwd: Option<&'a str>,
    pub format: Option<&'a str>,
    pub window_name: Option<&'a str>,
    pub session_name: Option<&'a str>,
    pub group_name: Option<&'a str>,
    pub width: Option<usize>,
    pub height: Option<usize>,
    pub shell_command: Option<&'a str>,
}

Structure for creating a new session

Manual

tmux new-session [-AdDEP] [-c start-directory] [-F format] [-n window-name]
[-s session-name] [-t group-name] [-x width] [-y height]
[shell-command]
(alias: new)

Fields

attach: Option<bool>

behave like attach-session if session-name already exists

detached: Option<bool>

new session is not attached to the current terminal

detach_other: Option<bool>

any other clients attached to the session are detached

not_update_env: Option<bool>

update-environment option will not be applied

print: Option<bool>

print information about the new session after it has been created

cwd: Option<&'a str>

specify starting directory

format: Option<&'a str>

specify different format

window_name: Option<&'a str>

window name of the initial window

session_name: Option<&'a str>

specify a session name

group_name: Option<&'a str>

specify a session group

width: Option<usize>

specify a different width

height: Option<usize>

specify a different height

shell_command: Option<&'a str>

shell command to execute in the initial window

Methods

impl<'a> NewSession<'a>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<'a> Default for NewSession<'a>[src]

Auto Trait Implementations

impl<'a> Send for NewSession<'a>

impl<'a> Unpin for NewSession<'a>

impl<'a> Sync for NewSession<'a>

impl<'a> UnwindSafe for NewSession<'a>

impl<'a> RefUnwindSafe for NewSession<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]