pub struct Session { /* private fields */ }Expand description
A Session is a collection of ProcessGroups.
Implementations§
Source§impl Session
impl Session
Sourcepub fn process_groups(&self) -> Vec<Arc<ProcessGroup>>
pub fn process_groups(&self) -> Vec<Arc<ProcessGroup>>
The ProcessGroups that belong to this Session.
Sourcepub fn set_terminal_with(
&self,
terminal: impl FnOnce() -> Arc<dyn Any + Send + Sync>,
) -> bool
pub fn set_terminal_with( &self, terminal: impl FnOnce() -> Arc<dyn Any + Send + Sync>, ) -> bool
Sets the terminal for this session.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
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