Skip to content

closure

Enums


firma_login::control_plane::closure::CloseOutcome

Section titled “firma_login::control_plane::closure::CloseOutcome”

Enum

How the CLI says a run ended.

Variants:

  • Completed - The command exited with 0.
  • Failed - The command exited otherwise, or the run failed after the start.
  • Cancelled - The user interrupted the command.

Traits: Copy, Eq

Trait Implementations:

  • Serialize
    • fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error>
  • Clone
    • fn clone(self: &Self) -> Self
  • PartialEq
    • fn eq(self: &Self, other: &Self) -> bool
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_login::control_plane::closure::RecordedOutcome

Section titled “firma_login::control_plane::closure::RecordedOutcome”

Enum

How the Control Plane recorded a terminal run: the first close wins, so it may differ from the [CloseOutcome] asked for.

Variants:

  • Completed - Closed as completed.
  • Failed - Closed as failed.
  • Cancelled - Closed as cancelled.
  • Expired - Expired: its Sidecar never connected, or stopped refreshing.
  • KeyExpired - Ended because its starting API key expired.
  • AgentDeleted - Ended because its Agent was deleted.

Traits: Copy, Eq

Trait Implementations:

  • Deserialize
    • fn deserialize<__D>(__deserializer: __D) -> _serde::__private229::Result<Self, <__D as >::Error>
  • PartialEq
    • fn eq(self: &Self, other: &Self) -> bool
  • From
    • fn from(outcome: CloseOutcome) -> Self
  • Display
    • fn fmt(self: &Self, f: & mut std::fmt::Formatter) -> std::fmt::Result
  • Clone
    • fn clone(self: &Self) -> Self
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result