use std::os::raw::c_uint;
pub trait BackEnd {
const BACK_END: c_uint;
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[non_exhaustive]
pub struct File;
impl BackEnd for File {
#[allow(clippy::as_conversions)]
const BACK_END: c_uint = selinux_sys::SELABEL_CTX_FILE as c_uint;
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[non_exhaustive]
pub struct Media;
impl BackEnd for Media {
#[allow(clippy::as_conversions)]
const BACK_END: c_uint = selinux_sys::SELABEL_CTX_MEDIA as c_uint;
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[non_exhaustive]
pub struct X;
impl BackEnd for X {
#[allow(clippy::as_conversions)]
const BACK_END: c_uint = selinux_sys::SELABEL_CTX_X as c_uint;
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[non_exhaustive]
pub struct DB;
impl BackEnd for DB {
#[allow(clippy::as_conversions)]
const BACK_END: c_uint = selinux_sys::SELABEL_CTX_DB as c_uint;
}