Skip to main content

Module binding

Module binding 

Source
Expand description

Owns event-loop-confined models and publishes accepted cell views.

Construct a SheetOwner with a repeatable ModelFactory, submit canonical CellEdit groups, and explicitly restore accepted history after rejection. Enable action capture with SheetOwner::start_recording, persist shared Recording values with serde, and replay them on fresh compatible models. HostOutcome::RecordingFailed accepts the model transaction but stops the recorder; do not roll accepted state back in response to that outcome.

Re-exports§

pub use widgets::CheckBox;
pub use widgets::CheckBox;
pub use widgets::EditNumber;
pub use widgets::EditNumber;
pub use widgets::EditSlider;
pub use widgets::EditSlider;
pub use widgets::EditText;
pub use widgets::EditText;

Structs§

CellBinding
Addresses one cell in one installation, never a later same-named replacement.
CellEdit
Addresses an input by stable schema key and exact canonical scalar text.
CellFlags
Publishes interaction state without treating derived cells as disabled.
CellView
Publishes one accepted effective value and its editor capabilities.
Recording
Stores a compatible schema’s exact effective source values by stable key.
RecoveryState
Retains accepted ordered input groups independently of any mutable model.
SheetEvent
Delivers a structured outcome after all enclosing model borrows end.
SheetHandle
Shares a scope-owned model; copying a handle does not copy its model or journal.
SheetOwner
Owns one event-loop-confined model, accepted journal, and immutable publication.

Enums§

BindingError
Distinguishes key, editor, capability, and owner-lifetime failures.
CaptureError
Distinguishes capture capabilities, encoding, schema, and model availability.
HostOutcome
Returns every transaction outcome to the host without choosing recovery.
HostRejection
Reports recoverable rejection without retaining the rejected candidate.
PlaybackError
Preserves construction, input rejection, capture, and fatal playback categories.
UpdateOrigin
Identifies feedback-loop policy without changing transaction acceptance.

Functions§

CheckBox
Binds a controlled Boolean without guessing its value from a click or stale display.
EditNumber
Binds an exact localized numeric editor to a named numeric cell.
EditSlider
Binds slider and exact numeric entry without clamping aspirations in the widget.
EditText
Binds exact scalar text without numeric coercion or synchronization writes.
use_sheet
Initializes one owner per mounted hook, including cached construction failure.

Type Aliases§

ModelFactory
Reconstructs the same initialized schema on its owning event loop.