[][src]Struct oxygengine_script_web::interface::WebScriptInterface

pub struct WebScriptInterface { /* fields omitted */ }

Implementations

impl WebScriptInterface[src]

pub fn is_ready() -> bool[src]

pub fn is_invalid() -> bool[src]

pub fn register_scriptable_resource<S>(&mut self, name: &str, resource: S) where
    S: 'static + Scriptable
[src]

pub fn register_resource_bridge<'a, S, M>(&mut self, name: &str) where
    S: Resource + Send + Sync + ResourceModify<M> + ResourceAccess,
    M: Scriptable + From<&'a S>, 
[src]

pub fn register_scriptable_component<S>(&mut self, name: &str, component: S) where
    S: 'static + Scriptable
[src]

pub fn register_component_bridge<S, M>(&mut self, name: &str, template: S) where
    S: Scriptable + Component + Clone + Send + Sync + ComponentModify<M>,
    S::Storage: Default,
    M: Scriptable + From<S>, 
[src]

pub fn register_scriptable_state_factory<S>(&mut self, name: &str, factory: S) where
    S: 'static + FnMut() -> Box<dyn WebScriptStateScripted>, 
[src]

pub fn read_scriptable_resource<T>(name: &str) -> Option<T> where
    T: Scriptable
[src]

pub fn read_js_resource(name: &str) -> Option<ScriptableValue>[src]

pub fn write_scriptable_resource<T>(name: &str, value: &T) where
    T: Scriptable
[src]

pub fn write_js_resource(name: &str, value: &ScriptableValue)[src]

Trait Implementations

impl Default for WebScriptInterface[src]

impl Send for WebScriptInterface[src]

impl Sync for WebScriptInterface[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any, 

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,