pub struct Client {
pub session_name: String,
pub last_session_name: String,
}
Expand description
A Tmux client.
Fields§
§session_name: String
The current session.
last_session_name: String
The last session.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Client
impl<'de> Deserialize<'de> for Client
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for Client
impl FromStr for Client
Source§fn from_str(input: &str) -> Result<Self, Self::Err>
fn from_str(input: &str) -> Result<Self, Self::Err>
Parse a string containing client information into a new Client
.
This returns a Result<Client, Error>
as this call can obviously
fail if provided an invalid format.
The expected format of the tmux response is
name-of-current-session:name-of-last-session
This status line is obtained with
tmux display-message -p -F "'#{client_session}':'#{client_last_session}'"
For definitions, look at Pane
type and the tmux man page for
definitions.
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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