pub struct XriptRuntime { /* private fields */ }Implementations§
Source§impl XriptRuntime
impl XriptRuntime
pub fn new(manifest: Manifest, options: RuntimeOptions) -> Result<Self>
pub fn execute(&self, code: &str) -> Result<ExecutionResult>
pub fn manifest(&self) -> &Manifest
pub fn load_mod( &self, mod_manifest_json: &str, fragment_sources: HashMap<String, String>, granted_capabilities: &HashSet<String>, entry_source: Option<&str>, ) -> Result<ModInstance>
pub fn fire_fragment_hook( &self, fragment_id: &str, lifecycle: &str, bindings: Option<&Value>, ) -> Result<Vec<Value>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XriptRuntime
impl RefUnwindSafe for XriptRuntime
impl Send for XriptRuntime
impl Sync for XriptRuntime
impl Unpin for XriptRuntime
impl UnsafeUnpin for XriptRuntime
impl UnwindSafe for XriptRuntime
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