ACPex.Schema.Client.Terminal.WaitForExitResponse (ACPex v0.1.0)

View Source

Response containing terminal exit information.

Sent by the client in response to a WaitForTerminalExitRequest, containing the terminal's exit code and/or signal.

Optional Fields

  • exit_code - The exit code (integer, 0 or greater)
  • signal - The signal that terminated the process (string)
  • meta - Additional metadata (map)

Note: At least one of exit_code or signal should be present.

Example

%ACPex.Schema.Client.Terminal.WaitForExitResponse{
  exit_code: 0,
  signal: nil
}

JSON Representation

{
  "exitCode": 0
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Client.Terminal.WaitForExitResponse{
  exit_code: integer() | nil,
  meta: map() | nil,
  signal: String.t() | nil
}

Functions

changeset(struct \\ %__MODULE__{}, params)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Creates a changeset for validation.

Optional Fields

  • exit_code - If present, must be >= 0
  • signal - Optional signal string