twizzler/object/
fot.rs

1use std::sync::atomic::AtomicU32;
2
3pub use twizzler_abi::meta::{FotEntry, FotFlags};
4
5use crate::ptr::GlobalPtr;
6
7#[repr(C)]
8pub struct ResolveRequest {}
9
10#[repr(C)]
11pub struct FotResolve {}
12
13impl<T> From<GlobalPtr<T>> for FotEntry {
14    fn from(value: GlobalPtr<T>) -> Self {
15        Self {
16            values: value.id().parts(),
17            resolver: 0,
18            flags: AtomicU32::new(0),
19        }
20    }
21}