pub enum PaneCommandEffect {
Focus {
previous: Option<PaneId>,
active: PaneId,
},
Structural(Vec<PaneOperation>),
Maximize {
target: PaneId,
},
Restore {
previous: PaneId,
},
Noop(PaneCommandNoopReason),
}Expand description
The concrete effect a resolved command produces. Focus changes and maximize
state are transient (no tree mutation); structural changes are a list of
PaneOperations the host applies via PaneTree::apply_operation.
Variants§
Focus
Focus moved from previous to active with no topology change.
Fields
Structural(Vec<PaneOperation>)
Apply these structural operations in order.
Maximize
Enter the maximized view state for target.
Restore
Leave the maximized view state previously held by previous.
Noop(PaneCommandNoopReason)
The command had no effect; see the reason.
Trait Implementations§
Source§impl Clone for PaneCommandEffect
impl Clone for PaneCommandEffect
Source§fn clone(&self) -> PaneCommandEffect
fn clone(&self) -> PaneCommandEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaneCommandEffect
impl Debug for PaneCommandEffect
impl Eq for PaneCommandEffect
Source§impl PartialEq for PaneCommandEffect
impl PartialEq for PaneCommandEffect
Source§fn eq(&self, other: &PaneCommandEffect) -> bool
fn eq(&self, other: &PaneCommandEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaneCommandEffect
Auto Trait Implementations§
impl Freeze for PaneCommandEffect
impl RefUnwindSafe for PaneCommandEffect
impl Send for PaneCommandEffect
impl Sync for PaneCommandEffect
impl Unpin for PaneCommandEffect
impl UnsafeUnpin for PaneCommandEffect
impl UnwindSafe for PaneCommandEffect
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