1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
/// The configuration for wich executor that should be used on this thread. // #[ derive( Debug, Copy, Clone, Hash, PartialEq, Eq ) ] // pub enum Config { /// A threadpool executor from the futures crate. // #[ cfg( feature = "threadpool" ) ] // ThreadPool, /// A threadpool executor from the juliex crate. // #[ cfg( feature = "juliex" ) ] // Juliex, /// A threadpool executor from the async-std crate. // #[ cfg( feature = "async_std" ) ] // AsyncStd, /// An executor that runs futures on the current thread, capable of running `!`[`Send`] futures. Uses /// `futures::executor::LocalPool`. // #[ cfg( feature = "localpool" ) ] // LocalPool, /// An executor that runs futures on the current thread, capable of running `!`[`Send`] futures. Uses /// `tokio::runtime::current_thread::Runtime`. // #[ cfg( feature = "tokio_ct" ) ] // TokioCt, /// An executor that uses wasm-bindgen-futures under the hood. This is the only executor available on wasm /// at the moment. It is also only available on the wasm32-unknown-unknown target. // #[ cfg( feature = "bindgen" ) ] // Bindgen, /// Protect against adding other options being breaking changes. // __Nonexhaustive, }