pub struct GXConfig<X: GXExt> { /* private fields */ }Implementations§
Source§impl<X: GXExt> GXConfig<X>
impl<X: GXExt> GXConfig<X>
Sourcepub fn builder(
ctx: ExecCtx<GXRt<X>, X::UserEvent>,
sub: Sender<GPooled<Vec<GXEvent<X>>>>,
) -> GXConfigBuilder<X>
pub fn builder( ctx: ExecCtx<GXRt<X>, X::UserEvent>, sub: Sender<GPooled<Vec<GXEvent<X>>>>, ) -> GXConfigBuilder<X>
Create a new config
Sourcepub async fn start(self) -> Result<GXHandle<X>>
pub async fn start(self) -> Result<GXHandle<X>>
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<X> !Freeze for GXConfig<X>
impl<X> !RefUnwindSafe for GXConfig<X>
impl<X> Send for GXConfig<X>
impl<X> Sync for GXConfig<X>
impl<X> Unpin for GXConfig<X>where
X: Unpin,
impl<X> !UnwindSafe for GXConfig<X>
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