pub struct Runtime { /* private fields */ }Expand description
One process’s substrate: mentra’s runtime plus the resolution policy and host guards that were fixed when it was built.
Shared through an Arc by every Workspace opened on
it, so N repositories cost one provider resolution and one store handle.
Send and Sync; sessions are minted from &self.
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn builder() -> RuntimeBuilder
pub fn builder() -> RuntimeBuilder
Configures a runtime before building it.
Sourcepub fn mentra_runtime(&self) -> &Runtime
pub fn mentra_runtime(&self) -> &Runtime
The runtime the workspaces run on, for a host that wants mentra’s own surface — the task board, teams, the store — alongside basis’s.
The same bargain as PreparedRun::session:
basis does not hide mentra, and reaching past basis’s surface is a
supported thing to do rather than a workaround.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !UnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
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