PR004: implement asset status-first lifecycle surface
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user