mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
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:
parent
037d960607
commit
a9a62f225e
@ -19,6 +19,7 @@ pub struct ThreadSafeCallContext<T: 'static> {
|
||||
}
|
||||
|
||||
#[repr(u8)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
pub enum ThreadsafeFunctionCallMode {
|
||||
NonBlocking,
|
||||
Blocking,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user