pub struct PaneSet { /* private fields */ }Expand description
Owned group of pane handles.
Implementations§
Source§impl PaneSet
impl PaneSet
Sourcepub fn keyboard(&self) -> PaneSetKeyboard
pub fn keyboard(&self) -> PaneSetKeyboard
Returns high-level keyboard actions broadcast to this pane set.
Source§impl PaneSet
impl PaneSet
Sourcepub fn new<I>(panes: I) -> Selfwhere
I: IntoIterator<Item = Pane>,
pub fn new<I>(panes: I) -> Selfwhere
I: IntoIterator<Item = Pane>,
Creates a pane set from pane handles.
Preserves caller order exactly. It does not deduplicate repeated pane handles and may contain panes from different daemon endpoints.
Sourcepub async fn broadcast(&self, input: Input<'_>) -> Result<BroadcastResult>
pub async fn broadcast(&self, input: Input<'_>) -> Result<BroadcastResult>
Broadcasts text or one key token to every pane.
This delegates to the client-side broadcast implementation and returns the same partial-broadcast error when at least one pane rejects the input.
Sourcepub async fn snapshot_all(&self) -> PaneSetBatch<PaneSnapshot>
pub async fn snapshot_all(&self) -> PaneSetBatch<PaneSnapshot>
Captures one fresh snapshot per pane.
The returned batch always contains per-pane successes and failures.
Call PaneSetBatch::is_success when the caller requires every pane
to succeed.
Sourcepub async fn close_all(self) -> PaneSetBatch<PaneCloseOutcome>
pub async fn close_all(self) -> PaneSetBatch<PaneCloseOutcome>
Closes every pane by consuming this pane set.
Stale panes use the ordinary Pane::close idempotent semantics and
return PaneCloseOutcome::AlreadyClosed as a success.
Sourcepub fn expect_all(&self) -> PaneSetExpectation<'_>
pub fn expect_all(&self) -> PaneSetExpectation<'_>
Starts an all-panes visible-text expectation builder.
Sourcepub fn expect_any(&self) -> PaneSetExpectation<'_>
pub fn expect_any(&self) -> PaneSetExpectation<'_>
Starts an any-pane visible-text expectation builder.
Sourcepub fn wait_all(&self) -> PaneSetExpectation<'_>
pub fn wait_all(&self) -> PaneSetExpectation<'_>
Alias for Self::expect_all.
Sourcepub fn wait_any(&self) -> PaneSetExpectation<'_>
pub fn wait_any(&self) -> PaneSetExpectation<'_>
Alias for Self::expect_any.