pub struct LayoutPaneBuilder<'a> { /* private fields */ }Expand description
Builder for the pane most recently declared with
GridLayoutBuilder::pane.
Implementations§
Source§impl<'a> LayoutPaneBuilder<'a>
impl<'a> LayoutPaneBuilder<'a>
Sourcepub fn spawn<I, S>(self, command: I) -> Self
pub fn spawn<I, S>(self, command: I) -> Self
Runs the pane process directly as structured argv.
Sourcepub fn shell(self, command: impl Into<String>) -> Self
pub fn shell(self, command: impl Into<String>) -> Self
Runs pane command text through the configured shell.
Sourcepub fn cwd(self, cwd: impl Into<PathBuf>) -> Self
pub fn cwd(self, cwd: impl Into<PathBuf>) -> Self
Sets the process working directory for this pane.
Sourcepub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
Adds one environment override for this pane process.
Sourcepub const fn keep_alive_on_exit(self, keep_alive: bool) -> Self
pub const fn keep_alive_on_exit(self, keep_alive: bool) -> Self
Controls whether this pane remains visible after its process exits.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LayoutPaneBuilder<'a>
impl<'a> !UnwindSafe for LayoutPaneBuilder<'a>
impl<'a> Freeze for LayoutPaneBuilder<'a>
impl<'a> Send for LayoutPaneBuilder<'a>
impl<'a> Sync for LayoutPaneBuilder<'a>
impl<'a> Unpin for LayoutPaneBuilder<'a>
impl<'a> UnsafeUnpin for LayoutPaneBuilder<'a>
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