pub struct SessionManager;Expand description
Session manager for tmuxrs
Implementations§
Source§impl SessionManager
impl SessionManager
Sourcepub fn start_session(
&self,
name: Option<&str>,
config_dir: Option<&Path>,
) -> Result<String>
pub fn start_session( &self, name: Option<&str>, config_dir: Option<&Path>, ) -> Result<String>
Start a session with optional explicit name
Sourcepub fn start_session_with_options(
&self,
name: Option<&str>,
config_dir: Option<&Path>,
attach: bool,
append: bool,
) -> Result<String>
pub fn start_session_with_options( &self, name: Option<&str>, config_dir: Option<&Path>, attach: bool, append: bool, ) -> Result<String>
Start a session with full options control
Sourcepub fn start_session_from_directory(
&self,
directory: &Path,
config_dir: Option<&Path>,
) -> Result<String>
pub fn start_session_from_directory( &self, directory: &Path, config_dir: Option<&Path>, ) -> Result<String>
Start a session detecting name from directory
Sourcepub fn list_configs(&self, config_dir: Option<&Path>) -> Result<Vec<Config>>
pub fn list_configs(&self, config_dir: Option<&Path>) -> Result<Vec<Config>>
List available configurations
Sourcepub fn stop_session(&self, name: &str) -> Result<String>
pub fn stop_session(&self, name: &str) -> Result<String>
Stop a session
Trait Implementations§
Source§impl Default for SessionManager
impl Default for SessionManager
Source§fn default() -> SessionManager
fn default() -> SessionManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionManager
impl RefUnwindSafe for SessionManager
impl Send for SessionManager
impl Sync for SessionManager
impl Unpin for SessionManager
impl UnsafeUnpin for SessionManager
impl UnwindSafe for SessionManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more