Server.ValidateLayoutsAsync
Checks layouts before a workspace changes the server.
Source and package
- Qualified name
-
LibTmux .Server. Validate Layouts Async - Namespace
- LibTmux
- Declared in
Server- Package
- LibTmux
- Source
- src/LibTmux/Server.Layout.cs
- Task ValidateLayoutsAsync( IEnumerable<(string Layout, int PaneCount)> layouts, Cancellation
Token cancellationToken = default ) -
Description
Checks custom syntax, checksums, and minimum cell counts without checking geometry. Version-sensitive names use the daemon version, or the client version when no daemon is running. This never starts or changes a server.
- Parameters
-
-
layouts(IEnumerable<(string Layout, int PaneCount)>) – Layouts and the number of panes each must accommodate. -
cancellationToken(CancellationToken ) – Cancels version discovery.Default
default
-
- Returns
-
A task completing when every layout is safe to send.
- Errors
-
-
Argument
Null – The layouts collection is null.Exception -
Argument
Exception – A layout or pane count is invalid on every release. -
Tmux
Unsupported – A layout is a form the daemon's release lacks.On Release Exception -
Invalid
Data – The daemon version reply is malformed.Exception -
Operation
Canceled – Validation was canceled.Exception -
Stale
Server – The daemon changed.Generation Exception -
Tmux
Command – The daemon version query failed.Exception
-
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.ValidateLayoutsAsync.