Expand description
A Tmux client.
Fields
session_name: String
The current session.
last_session_name: String
The last session.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Client
impl<'de> Deserialize<'de> for Client
sourcefn 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
sourceimpl FromStr for Client
impl FromStr for Client
sourcefn 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 RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more