Skip to main content

Crate shelly_axum

Crate shelly_axum 

Source
Expand description

Axum adapter for Shelly LiveView.

The adapter owns HTTP routing, initial page rendering, JavaScript asset serving, and WebSocket transport. The core runtime remains in shelly.

Structs§

AuthorizationContext
Context passed to optional authorization hooks.
AuthorizationDecision
Authorization hook response.
DurableJournalEntry
Durable journal entry for replaying state transitions after failover.
DurableLeaseGrant
Result of a successful durable lease acquisition/renewal.
DurableLeaseRequest
Durable lease acquisition request.
DurablePlacementContext
Placement context for durable ownership acquisition decisions.
DurablePlacementDecision
Placement hook response for durable ownership acquisition.
DurableSessionRecord
Durable record loaded from one store backend.
DurableSessionSnapshot
Durable session snapshot persisted for failover recovery.
DurableStoreError
Durable store error from lease/snapshot/journal operations.
FileDurableSessionStore
Durable store that persists lease/snapshot/journal state to local files.
InMemoryDurableSessionStore
OverloadBudgets
Budget configuration for adaptive overload control.
OverloadContext
Context passed to optional overload policy hooks.
OverloadDecision
Overload policy decision.
QuotaContext
Context passed to optional quota policy hooks.
QuotaDecision
Quota policy hook response.
RateLimitContext
Context passed to the optional transport-level rate limiter hook.
SessionAffinityContext
ShellyRouter
Builder for an Axum-backed Shelly application.
TelemetryConfig
Telemetry configuration for the Axum adapter.
TenantQuotaBudgets
TenantQuotaPolicy

Enums§

ConsoleLogFormat
Console log formatting mode.
DurableTakeoverPolicy
Durable runtime takeover policy when another node currently owns a session lease.
OutboundOverflowPolicy
Overflow handling policy for bounded outbound websocket queues.
OverloadPriority
Priority class used by overload scheduler decisions.
OverloadShedPolicy
Overload shed strategy for saturated runtime paths.
SecurityOperation
Message operation surfaced to security policy hooks.
SessionAffinityMode
TelemetryExporter
Export mode for Shelly telemetry events.
TransportMode
Runtime transport profile advertised to browser clients.

Traits§

DurableSessionStore
Durable store abstraction for session ownership + recovery state.

Functions§

init_console_logging
Initialize a standardized Shelly tracing subscriber for console logs.

Type Aliases§

LiveViewFactory
Factory for a fresh LiveView instance.