1use serde_repr::Serialize_repr;
5use strum::Display;
6
7#[cfg(feature = "typescript")]
8use ts_rs::TS;
9
10#[expect(non_camel_case_types)]
11#[repr(i32)]
12#[derive(Clone, Copy, Debug, Display, PartialEq, Eq, Serialize_repr)]
13#[cfg_attr(feature = "typescript", derive(TS))]
14#[cfg_attr(feature = "typescript", ts(export, repr(enum)))]
15#[cfg_attr(feature = "typescript", ts(rename = "ffi_Status"))]
16pub enum Status {
17 OK = 0,
18 ERR_NULL_POINTER = 1,
19 ERR_NOTHING_TO_POLL = 2,
20 ERR_SERIALIZATION = 3,
21 ERR_UNKNOWN = i32::MAX,
22}