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
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue