Skip to main content

Crate appcore_ui

Crate appcore_ui 

Source
Expand description

Versioned, bounded UI boundaries; deployment owns hosting and authorization.

Re-exports§

pub use appcore_capabilities as capabilities;
pub use appcore_contracts as contracts;
pub use appcore_core as core;

Modules§

elements
Function-based element construction, independent of platform rendering. Function-based native elements. Construction stays separate from page validation and behavior.

Structs§

CommandRequest
Existing Runtime API request contracts, unchanged by the UI bridge. Version 1 command request transported to the Runtime host.
QueryRequest
Existing Runtime API request contracts, unchanged by the UI bridge. Version 1 side-effect-free query request.
UiCaller
A caller identity constructed by the native/transport adapter, never decoded from UI JSON.
UiCancellation
Cooperative cancellation signal shared with a selected handler.
UiEventV1
One bounded ephemeral UI event, not an application durable outbox record.
UiGrant
Authenticated policy context produced by a deployment authorizer.
UiLimits
Budgets selected explicitly by the deployment.
UiNativePage
Immutable validated page. No rendering, process startup or authority is implicit.
UiNativePageV1
Source-native page definition; use UiNativePage::new before platform rendering.
UiPublishReport
Delivery report with no event payload or subscriber identity.
UiRectangle
Fixed logical rectangle within the initial page viewport.
UiReplyV1
One correlated result of a UI V1 action.
UiRequestV1
One versioned frame; host identity and credentials are never client fields.
UiRuntimeDispatch
An explicit dispatch integration with already composed Runtime registries.
UiSurface
One deployment-created UI surface. It never starts a process, listener or engine.
UiSurfaceSnapshot
Payload-free bounded operational snapshot.
UiTopicBinding
Explicit mapping from a notification topic to a declared read capability.
UiWebAsset
Application-owned source asset. Display/script content is not included in Debug.
UiWebBundle
Application-built web document and its bounded immutable local resource set.
UiWebResource
Borrowed response from a validated bundle, without allocating another body.

Enums§

UiActionV1
Versioned actions; the page cannot publish events or grant itself capabilities.
UiConnectionState
Transport-link state, distinct from application or peer health.
UiError
Stable wire error codes; errors never contain credentials or application data.
UiInvocationV1
Existing Runtime DTO selected for execution.
UiNativeNodeV1
Initial native control vocabulary. Application behavior is bound by action identity.
UiNativeValue
Typed presentation value, without implicit command dispatch or authorization. No Debug implementation exposes editable content.
UiOutcomeV1
An exclusive wire result; unknown codes or contradictory envelopes are not inferred.
UiWebMedia
Supported opaque resource kinds; media types are never inferred from an extension.

Constants§

UI_NATIVE_PAGE_V1
Native page schema, independently versioned from manifests and bridge frames.
UI_PROTOCOL_V1
Explicit version of this UI wire family, independent of Peer RPC.

Traits§

UiBackend
Mandatory deployment authentication/authorization and owning handler integration.

Functions§

decode_ui_request_v1
Decodes only UI V1 after checking the complete input budget.

Type Aliases§

UiBackendFuture
Executor-independent owned/borrowed backend future.
UiResult
Result at a UI infrastructure boundary.