Skip to main content

LayoutPaneBuilder

Struct LayoutPaneBuilder 

Source
pub struct LayoutPaneBuilder<'a> { /* private fields */ }
Expand description

Builder for the pane most recently declared with GridLayoutBuilder::pane.

Implementations§

Source§

impl<'a> LayoutPaneBuilder<'a>

Source

pub fn spawn<I, S>(self, command: I) -> Self
where I: IntoIterator<Item = S>, S: Into<String>,

Runs the pane process directly as structured argv.

Source

pub fn shell(self, command: impl Into<String>) -> Self

Runs pane command text through the configured shell.

Source

pub fn cwd(self, cwd: impl Into<PathBuf>) -> Self

Sets the process working directory for this pane.

Source

pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self

Adds one environment override for this pane process.

Source

pub const fn keep_alive_on_exit(self, keep_alive: bool) -> Self

Controls whether this pane remains visible after its process exits.

Source

pub fn pane(self, title: impl Into<String>) -> Self

Starts another pane declaration after finalizing this one.

Source

pub async fn apply(self) -> Result<PaneSet>

Applies the grid after finalizing this pane declaration.

Trait Implementations§

Source§

impl<'a> Debug for LayoutPaneBuilder<'a>

Source§

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

Formats the value using the given formatter. Read more

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.