StartResult

sealed interface StartResult

Outcome of io.devconsole.DevConsole.startBrowser / startBrowserAsync.

Inheritors

Types

Link copied to clipboard

This build variant is protected (release, wired to devconsole-noop); the call was a no-op.

Link copied to clipboard
data class Failed(val message: String) : StartResult

Start failed for a reason not covered by the other variants; message has the detail.

Link copied to clipboard

The supplied StartRequest failed validation (e.g. an empty or out-of-range port range).

Link copied to clipboard
data class NoEligibleNetwork(val details: String) : StartResult

LAN binding was requested but no eligible network interface was found to bind to (for example, no active Wi-Fi/Ethernet connection). details describes what was checked. Retry once connectivity changes, or fall back to BindingMode.LOOPBACK.

Link copied to clipboard

io.devconsole.DevConsole.initialize has not (yet) succeeded on this build. Initialize first, then retry.

Link copied to clipboard
data class PermissionRequired(val permission: String) : StartResult

LAN binding was requested but the runtime local-network permission has not been granted yet. permission is the exact permission string to request; retry the same StartRequest after the host grants it (or fall back to BindingMode.LOOPBACK, which needs no permission).

Link copied to clipboard
data class PortUnavailable(val attempted: IntRange) : StartResult

Every port in attempted was already in use. Retry with a different StartRequest.portRange.

Link copied to clipboard

A concrete platform server is unavailable; retained for core-only integrations.

Link copied to clipboard
data class Started(val endpoint: BrowserEndpoint, val access: AccessInfo) : StartResult

The server bound successfully. endpoint is where it's listening; access is the session credential.