def name

cswap-bend-cli@0.1.0.0 · policy/safe.bend:180

import cswap-bend-cli@0.1.0.0/policy/safe.bend as Safe
import Base

180def name(+algo: Algo) -> String:
181  match algo:
182    case ABest{}:
183      "best"
184    case ARoundRobin{}:
185      "round-robin"
186    case ASoonestReset{}:
187      "soonest-reset"
188    case ASticky{}:
189      "sticky"
190    case ADrainFirst{}:
191      "drain-first"

Uses (2)

Used by (7)