pub struct TerminalLayout {
pub version: u32,
pub panes_per_tab: usize,
pub panes: Vec<LayoutPane>,
}Fields§
§version: u32§panes_per_tab: usize§panes: Vec<LayoutPane>Implementations§
Source§impl TerminalLayout
impl TerminalLayout
pub fn read(path: &Path) -> Result<Self>
pub fn parse(text: &str) -> Result<Self>
pub fn from_legacy(workspace: Workspace) -> Result<Self>
pub fn validate(&self) -> Result<()>
pub fn write(&self, path: &Path) -> Result<()>
Sourcepub fn plan(
&self,
window: &str,
panes_per_tab: Option<usize>,
allow_partial: bool,
resolve: impl FnMut(&CommandSpec) -> Result<AttachmentResolution>,
) -> Result<RestorePlan>
pub fn plan( &self, window: &str, panes_per_tab: Option<usize>, allow_partial: bool, resolve: impl FnMut(&CommandSpec) -> Result<AttachmentResolution>, ) -> Result<RestorePlan>
Resolve fresh observations and compile ready panes. This has no launch fallback.
Trait Implementations§
Source§impl Clone for TerminalLayout
impl Clone for TerminalLayout
Source§impl Debug for TerminalLayout
impl Debug for TerminalLayout
Source§impl<'de> Deserialize<'de> for TerminalLayout
impl<'de> Deserialize<'de> for TerminalLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for TerminalLayout
impl Freeze for TerminalLayout
impl Move for TerminalLayout
impl RefUnwindSafe for TerminalLayout
impl Send for TerminalLayout
impl Sync for TerminalLayout
impl Unpin for TerminalLayout
impl UnsafeUnpin for TerminalLayout
impl UnwindSafe for TerminalLayout
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