use serde_repr::Serialize_repr;
use strum::Display;
#[expect(non_camel_case_types)]
#[repr(i32)]
#[derive(Clone, Copy, Debug, Display, PartialEq, Eq, Serialize_repr)]
#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
#[cfg_attr(feature = "typescript", ts(export, repr(enum)))]
#[cfg_attr(feature = "typescript", ts(rename = "ffi_Status"))]
pub enum Status {
OK = 0,
ERR_NULL_POINTER = 1,
ERR_NOTHING_TO_POLL = 2,
ERR_SERIALIZATION = 3,
ERR_UNKNOWN = i32::MAX,
}