#[non_exhaustive]pub struct SessionTreeFields {
pub session: SessionFields<SessionTree>,
pub windows: ManyRelation<SessionTree, WindowTree>,
}Available on crate feature
query only.Expand description
Typed filter handles for SessionTree.
The session’s own fields sit under session, and windows is the
relation that makes a question about a session’s contents expressible.
§Examples
use libtmux::query::Filterable as _;
use libtmux::{SessionTree, WindowTree};
let sessions = SessionTree::filter_fields();
let windows = WindowTree::filter_fields();
// The session's own fields sit beside the relation rather than behind it, so
// a question about the session and a question about what it contains compose.
let building = sessions
.session
.session_name
.starts_with("build")
.and(sessions.windows.any(windows.window.window_name.eq("editor")));Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session: SessionFields<SessionTree>The session’s own fields, the same set Session filters on.
windows: ManyRelation<SessionTree, WindowTree>The windows under this session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionTreeFields
impl RefUnwindSafe for SessionTreeFields
impl Send for SessionTreeFields
impl Sync for SessionTreeFields
impl Unpin for SessionTreeFields
impl UnsafeUnpin for SessionTreeFields
impl UnwindSafe for SessionTreeFields
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