pub enum ScriptNs {
Builtin,
Extension,
Named(String),
}Expand description
The script surface a plugin describes its functions in and answers calls with. Data types, from the engine’s own crate, so a value a plugin builds decodes into the one the script layer routes. Where a function lives in the script’s name space.
Variants are append-only; see SCRIPT_WIRE_VERSION.
Variants§
Builtin
The runtime’s own surface. Global on Rhai and Lua; the lumen host
namespace on candela.
Extension
An embedder’s surface (the C ABI’s lumen_app_expose, the Rust SDK, a
plugin). Global on Rhai and Lua; the native host namespace on candela.
Named(String)
A namespace of the embedder’s choosing: a static module on Rhai, a global table on Lua, a host namespace on candela.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScriptNs
impl<'de> Deserialize<'de> for ScriptNs
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScriptNs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScriptNs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ScriptNs
impl Serialize for ScriptNs
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ScriptNs
impl StructuralPartialEq for ScriptNs
Auto Trait Implementations§
impl Freeze for ScriptNs
impl RefUnwindSafe for ScriptNs
impl Send for ScriptNs
impl Sync for ScriptNs
impl Unpin for ScriptNs
impl UnsafeUnpin for ScriptNs
impl UnwindSafe for ScriptNs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.