tokio/runtime/local_runtime/options.rs
1use std::marker::PhantomData;
2
3/// [`LocalRuntime`]-only config options
4///
5/// Currently, there are no such options, but in the future, things like `!Send + !Sync` hooks may
6/// be added.
7///
8/// Use `LocalOptions::default()` to create the default set of options. This type is used with
9/// [`Builder::build_local`].
10///
11/// [`Builder::build_local`]: crate::runtime::Builder::build_local
12/// [`LocalRuntime`]: crate::runtime::LocalRuntime
13#[derive(Default, Debug)]
14#[non_exhaustive]
15pub struct LocalOptions {
16 /// Marker used to make this !Send and !Sync.
17 _phantom: PhantomData<*mut u8>,
18}