pub struct SidecarRuntime { /* private fields */ }Implementations§
Source§impl SidecarRuntime
impl SidecarRuntime
Sourcepub fn process(
config: &RuntimeConfig,
) -> Result<&'static Self, RuntimeBuildError>
pub fn process( config: &RuntimeConfig, ) -> Result<&'static Self, RuntimeBuildError>
Return the one Tokio runtime owned by this sidecar process.
The first caller fixes the process topology. A later caller requesting a different topology receives a typed configuration error instead of silently creating a subsystem- or VM-local runtime.
Sourcepub fn process_context() -> Result<RuntimeContext, RuntimeBuildError>
pub fn process_context() -> Result<RuntimeContext, RuntimeBuildError>
Obtain the runtime already constructed by the process entrypoint. Subsystems must never silently select a default topology: doing so can race trusted configuration and make the first incidental caller own the process scheduler.
pub fn context(&self) -> RuntimeContext
pub fn block_on<F: Future>(&self, future: F) -> F::Output
Auto Trait Implementations§
impl !Freeze for SidecarRuntime
impl RefUnwindSafe for SidecarRuntime
impl Send for SidecarRuntime
impl Sync for SidecarRuntime
impl Unpin for SidecarRuntime
impl UnsafeUnpin for SidecarRuntime
impl UnwindSafe for SidecarRuntime
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