Skip to main content

Module attach

Module attach 

Source
Expand description

Attach story: first paint is core; live serve is optional.

Structs§

AttachHooks
Hooks so --offline can be tested with a connector that panics.

Enums§

AttachFail
Why a live connect was refused. try_attach maps this onto AttachOutcome.
AttachOutcome
Result of the post-paint attach attempt. First paint always used CoreBackend already.
ServeStatus
How the status line labels the current store.

Functions§

open_core
First paint: core catalog, revision 0, no socket.
try_attach
Never probes the socket when offline. Otherwise: accept and initialize; on a free socket, ensure_serve then attach; on spawn failure stay core.

Type Aliases§

ConnectFn
Connect a live BoardBackend, or classify why attach must stay on core.
EnsureFn
Spawn or reuse vissue serve. The String is a spawn failure message.
ProbeFn
Returns true when the control socket already accepts connections.