platinum_lua public native declarations
Open searchable reader
platinum_lua::LuaModelAccess
pub enum LuaModelAccess
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/lib.rs:44
platinum_lua::LuaModelPermissions
pub struct LuaModelPermissions(Arc<Mutex<LuaModelAccess>>)
Trusted host-controlled gate, never exported as Lua data. Revocation waits
only for an in-progress local commit; once it returns no later commit passes.
It is not a broker credential and cannot revoke already disclosed plaintext.
Source: crates/platinum-lua/src/lib.rs:54
platinum_lua::LuaModelPermissions::new
pub fn new(access: LuaModelAccess) -> Self
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/lib.rs:56
platinum_lua::LuaModelPermissions::set_access
pub fn set_access(&self, access: LuaModelAccess) -> Result<()>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/lib.rs:59
platinum_lua::LuaBindingLimits
pub struct LuaBindingLimits
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| max_depth | usize | |
| max_nodes | usize | |
| max_string_bytes | usize | |
Source: crates/platinum-lua/src/lib.rs:91
platinum_lua::LuaModelBinding
pub struct LuaModelBinding
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| value | AnyUserData | |
| snapshot | Function | Returns a detached plain Lua table and decimal revision string. |
| commit | Function | Accepts (decimal base revision, detached table), returns new revision. |
| revision | Function | |
| null | Value | |
Source: crates/platinum-lua/src/lib.rs:106
platinum_lua::bind_model
pub fn bind_model(
lua: &Lua,
model: BoundModel<Json>,
permissions: LuaModelPermissions,
limits: LuaBindingLimits,
) -> Result<LuaModelBinding>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/lib.rs:337
platinum_lua::live_view
platinum_lua::live_view
Lua entrypoints for common authorized LiveView handles. Scripts receive
opaque userdata, never constructors granting access from arbitrary IDs/paths.
Source: crates/platinum-lua/src/live_view.rs:1
platinum_lua::live_view::bind_live_view
pub fn bind_live_view(
lua: &Lua,
handle: LiveViewHandle,
options: LiveViewOptions,
limits: LuaBindingLimits,
) -> Result<AnyUserData>
Bind an already authorized source. Default options attach live. Unsupported
projections fail; permanent copies need an explicit authorized destination.
Source: crates/platinum-lua/src/live_view.rs:27
platinum_lua::live_view::bind_copy_directory
pub fn bind_copy_directory(
lua: &Lua,
directory: platinum_core::live_view::files::LiveCopyDirectory,
) -> Result<AnyUserData>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/live_view.rs:137
platinum_lua::live_view::bind_source_file_location
pub fn bind_source_file_location(
lua: &Lua,
location: platinum_core::live_view::files::LiveSourceFileLocation,
) -> Result<AnyUserData>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/live_view.rs:144
platinum_lua::managed
platinum_lua::managed
Optional state-provider bridge for registered Lua models. Lua globals, VM
stacks and arbitrary userdata are not persistent. The existing bind_model
proxy/codec remains the only Lua object implementation.
Source: crates/platinum-lua/src/managed.rs:1
platinum_lua::managed::ManagedLuaError
pub struct ManagedLuaError(pub String)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:18
platinum_lua::managed::LuaRootStatus
pub enum LuaRootStatus
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:30
platinum_lua::managed::ManagedLuaRoot
pub struct ManagedLuaRoot
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:60
platinum_lua::managed::ManagedLuaRoot::local
pub fn local(schema: Arc<ValidatedSchema>, initial: Json) -> Result<Self, ManagedLuaError>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:66
platinum_lua::managed::ManagedLuaRoot::managed
pub fn managed(
schema: Arc<ValidatedSchema>,
initial: Json,
document: DocumentRef,
revision: Generation,
mode: TrackingMode,
) -> Result<Self, ManagedLuaError>
Initial values are speculative defaults until the authority restores or
provisions this root. Pending userdata cannot read/write those defaults.
Source: crates/platinum-lua/src/managed.rs:77
platinum_lua::managed::ManagedLuaRoot::bind
pub fn bind(
&self,
lua: &Lua,
permissions: LuaModelPermissions,
limits: LuaBindingLimits,
) -> mlua::Result<LuaModelBinding>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:112
platinum_lua::managed::ManagedLuaRoot::model
pub fn model(&self) -> BoundModel<Json>
A trusted in-process handle, not an authority credential. Host Rust edits
using the existing BoundModel commit path are observed just like Lua edits.
Source: crates/platinum-lua/src/managed.rs:122
platinum_lua::managed::ManagedLuaRoot::tracked
pub fn tracked(&self) -> Option<&Tracked<Arc<Json>>>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:125
platinum_lua::managed::ManagedLuaRoot::status
pub fn status(&self) -> Result<LuaRootStatus, ManagedLuaError>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:132
platinum_lua::managed::ManagedLuaRoot::pump
pub fn pump(
&mut self,
sync: Option<&mut StateSync>,
now_ms: u64,
) -> Result<LuaRootStatus, ManagedLuaError>
Local callers pass None and need no StateSync resource/provider/thread.
Polling unchanged models takes a short snapshot lock and Arc clone only.
Source: crates/platinum-lua/src/managed.rs:160
platinum_lua::managed::ManagedLuaRoot::flush
pub fn flush(
&mut self,
sync: &mut StateSync,
now_ms: u64,
) -> Result<LuaRootStatus, ManagedLuaError>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:296
platinum_lua::managed::ManagedLuaRoot::set_mode
pub fn set_mode(&mut self, mode: TrackingMode) -> Result<(), ManagedLuaError>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-lua/src/managed.rs:317
platinum_lua::managed::ManagedLuaRoot::reconcile
pub fn reconcile(
&mut self,
sync: &mut StateSync,
merged: Json,
authority_revision: Generation,
) -> Result<(), ManagedLuaError>
Explicit host merge, based on a freshly read authoritative revision.
The next proposal still uses authority CAS; no license/permission bypass.
Source: crates/platinum-lua/src/managed.rs:357