[][src]Struct glsp::RuntimeBuilder

pub struct RuntimeBuilder { /* fields omitted */ }

Configuration options for constructing a Runtime.

Currently, the only option is sandboxed.

Implementations

impl RuntimeBuilder[src]

pub fn new() -> RuntimeBuilder[src]

pub fn sandboxed(self, sandboxed: bool) -> RuntimeBuilder[src]

Sets the sandboxed configuration option, which defaults to false.

When sandboxed is true, the global functions load, require and include are not defined in the GameLisp runtime. It's still possible for Rust code to call glsp::load or glsp::require.

pub fn build(self) -> Runtime[src]

Construct a Runtime with these settings.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Erased for T

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

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

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.