PR004: implement asset status-first lifecycle surface

This commit is contained in:
2026-03-24 13:40:51 +00:00
parent 998252aa25
commit c8b3b6afcc
6 changed files with 130 additions and 26 deletions
+18
View File
@@ -37,6 +37,24 @@ pub enum LoadStatus {
COMMITTED,
CANCELED,
ERROR,
UnknownHandle,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(i32)]
pub enum AssetLoadError {
AssetNotFound = 1,
SlotKindMismatch = 2,
SlotIndexInvalid = 3,
BackendError = 4,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(i32)]
pub enum AssetOpStatus {
Ok = 0,
UnknownHandle = 1,
InvalidState = 2,
}
#[derive(Debug, Clone, Serialize, Deserialize)]