[][src]Struct glsp::RuntimeBuilder

pub struct RuntimeBuilder { /* fields omitted */ }

Configuration options for constructing a Runtime.

Currently, the only option is sandboxed.


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> IntoElement<Slot> for T where
    T: IntoVal

impl<T> IntoVal for T where
    T: StaticMarker, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.