Skip to main content

RuntimeControl

Trait RuntimeControl 

pub trait RuntimeControl: RuntimeQuery {
    // Required method
    fn request_close(&self) -> CloseRequestStatus;
}
Expand description

原服务控制;仅提出请求,不等待所有来源、任务(Task)或线程退出。

Required Methods§

Source

fn request_close(&self) -> CloseRequestStatus

请求一旦记录不因通知异常回滚,无人推进也不拒绝合法请求。

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<E, I, T, L> RuntimeControl for ExecutorHandle<E, I, T, L>
where E: ExternalAccess, I: IdleAccess, T: TimerBinding, L: LocalReadySubmit,

Implementors§

§

impl<C, E, I, T, Q> RuntimeControl for RuntimeHandle<C, E, I, T, Q>
where C: ExecutorClock<Instant = GlobalManualInstant>, E: ExternalAccess, I: IdleAccess, T: TimerBinding<ClockInstant = GlobalManualInstant>, Q: InternalTaskQueue + 'static,

§

impl<I, T> RuntimeControl for ConfiguredLocalRuntime<I, T>
where I: IdleBinding, T: TimerBinding<ClockInstant = GlobalManualInstant>,

§

impl<M, C, P, H, E, I, T, Q> RuntimeControl for ConfiguredRuntime<M, C, P, H, E, I, T, Q>
where M: RuntimeMode, C: ExecutorClock<Instant = GlobalManualInstant>, E: RuntimeSourceBinding, I: IdleBinding, T: TimerBinding<ClockInstant = GlobalManualInstant>, Q: InternalTaskQueue + 'static, P: IdlePolicy, H: ExecutorHooks,