heim_common/sys/mod.rs
1//! OS-specific routines for `heim` sub-crates (and `heim` sub-crates only).
2//!
3//! Do not use them.
4
5use crate::units::Time;
6
7/// Converting various OS structs into the `Time` unit.
8pub trait IntoTime {
9 /// Do the magic
10 fn into_time(self) -> Time;
11}
12
13#[cfg(unix)]
14pub mod unix;
15
16cfg_if::cfg_if! {
17 if #[cfg(target_os = "windows")] {
18 pub mod windows;
19 } else if #[cfg(target_os = "macos")] {
20 pub mod macos;
21 }
22}