pub struct XriptHandle { /* private fields */ }Implementations§
Source§impl XriptHandle
impl XriptHandle
pub fn new(manifest_json: String, options: RuntimeOptions) -> Result<Self>
pub fn execute(&self, code: &str) -> Result<ExecutionResult>
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 manifest_name(&self) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XriptHandle
impl !RefUnwindSafe for XriptHandle
impl Send for XriptHandle
impl Sync for XriptHandle
impl Unpin for XriptHandle
impl UnsafeUnpin for XriptHandle
impl !UnwindSafe for XriptHandle
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