pub struct GXConfig { /* private fields */ }Implementations§
Source§impl GXConfig
impl GXConfig
Sourcepub fn builder(
ctx: ExecCtx<GXCtx, NoUserEvent>,
sub: Sender<Pooled<Vec<RtEvent>>>,
) -> GXConfigBuilder
pub fn builder( ctx: ExecCtx<GXCtx, NoUserEvent>, sub: Sender<Pooled<Vec<RtEvent>>>, ) -> GXConfigBuilder
Create a new config
Sourcepub async fn start(self) -> Result<GXHandle>
pub async fn start(self) -> Result<GXHandle>
Start the graphix runtime with the specified config, return a handle capable of interacting with it.
root is the text of the root module you wish to initially
load. This will define the environment for the rest of the
code compiled by this runtime. The runtime starts completely
empty, with only the language, no core library, no standard
library. To build a runtime with the full standard library and
nothing else simply pass the output of
graphix_stdlib::register to start.
Auto Trait Implementations§
impl Freeze for GXConfig
impl !RefUnwindSafe for GXConfig
impl Send for GXConfig
impl Sync for GXConfig
impl Unpin for GXConfig
impl !UnwindSafe for GXConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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