feat(napi): add derived traits to ThreadsafeFunctionCallMode (#1243)

This makes it possible to reuse the same value, e.g. when writing utility/helper functions.
This commit is contained in:
Dennis Duda 2022-07-31 09:29:26 +02:00 committed by GitHub
parent 037d960607
commit a9a62f225e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ pub struct ThreadSafeCallContext<T: 'static> {
} }
#[repr(u8)] #[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum ThreadsafeFunctionCallMode { pub enum ThreadsafeFunctionCallMode {
NonBlocking, NonBlocking,
Blocking, Blocking,