From a9a62f225e6b789e16a420bf2d819b6c1421861d Mon Sep 17 00:00:00 2001 From: Dennis Duda Date: Sun, 31 Jul 2022 09:29:26 +0200 Subject: [PATCH] feat(napi): add derived traits to `ThreadsafeFunctionCallMode` (#1243) This makes it possible to reuse the same value, e.g. when writing utility/helper functions. --- crates/napi/src/threadsafe_function.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/napi/src/threadsafe_function.rs b/crates/napi/src/threadsafe_function.rs index a38e7e0e..8ce36e20 100644 --- a/crates/napi/src/threadsafe_function.rs +++ b/crates/napi/src/threadsafe_function.rs @@ -19,6 +19,7 @@ pub struct ThreadSafeCallContext { } #[repr(u8)] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum ThreadsafeFunctionCallMode { NonBlocking, Blocking,