type SetResult

bendvy-ecs-core@0.1.0.4 · component.bend:38

import bendvy-ecs-core@0.1.0.4/component.bend as Component
import Base
import world.bend as W

38# Transactional write result. Written retains the Tx with its inverse journal;
39# WriteRejected additionally returns the actual incoming C. WriteFailure has no
40# incoming owner. These results do not themselves commit or finish the transaction.
41type SetResult<Tx: Type,C: Type> is Type:
42  Written{tx: Tx}
43  WriteRejected{tx: Tx,incoming: C,error: W.WorldError}
44  WriteFailure{tx: Tx,error: W.WorldError}

Uses (1)

Used by (11)