pub struct Session {
Show 19 fields pub activity: Option<usize>, pub alerts: Option<String>, pub attached: Option<usize>, pub attached_list: Option<usize>, pub created: Option<usize>, pub format: Option<bool>, pub group: Option<String>, pub group_attached: Option<usize>, pub group_attached_list: Option<String>, pub group_list: Option<String>, pub group_many_attached: Option<bool>, pub group_size: Option<String>, pub grouped: Option<bool>, pub id: Option<usize>, pub last_attached: Option<usize>, pub many_attached: Option<bool>, pub name: Option<String>, pub stack: Option<SessionStack>, pub windows: Option<usize>,
}

Fields§

§activity: Option<usize>

session_activity - Time of session last activity

§alerts: Option<String>

session_alerts - List of window indexes with alerts

§attached: Option<usize>

session_attached - Number of clients session is attached to

§attached_list: Option<usize>

session_attached_list - List of clients session is attached to

§created: Option<usize>

session_created - Time session created

§format: Option<bool>

1 if format is for a session (not assuming the current)

§group: Option<String>

session_group - Name of session group

§group_attached: Option<usize>

session_group_attached - Number of clients sessions in group are attached >

§group_attached_list: Option<String>

session_group_attached_list - List of clients sessions in group are attached to

§group_list: Option<String>

session_group_list - List of sessions in group

§group_many_attached: Option<bool>

session_group_many_attached - 1 if multiple clients attached to sessions in gro

§group_size: Option<String>

session_size - Size of session group

§grouped: Option<bool>

session_grouped - 1 if session in a group

§id: Option<usize>

session_id - Unique session ID

§last_attached: Option<usize>

session_last_attached - Time session last attached

§many_attached: Option<bool>

session_many_attached - 1 if multiple clients attached

§name: Option<String>

session_name - #S Name of session

§stack: Option<SessionStack>

session_stack - Window indexes in most recent order

§windows: Option<usize>

session_windows - Number of windows in session

Implementations§

source§

impl Session

source

pub fn new() -> Self

Trait Implementations§

source§

impl Clone for Session

source§

fn clone(&self) -> Session

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Session

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Session

source§

fn default() -> Session

Returns the “default value” for a type. Read more
source§

impl FromStr for Session

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Error>

Parses a string s to return a value of this type. Read more
source§

impl PartialEq for Session

source§

fn eq(&self, other: &Session) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Session

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.