graphics/call/error.rs
1//! Status codes returned to callers. They are part of the call ABI.
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq)]
4#[repr(i32)]
5pub enum Error {
6 InvalidArgumentsCount = 1,
7 InvalidMemory = 2,
8 Unavailable = 3,
9 Unsupported = 4,
10 InvalidHandle = 5,
11 ResourceLimit = 6,
12 InvalidValue = 7,
13 NativeFailure = 8,
14}
15
16pub type Result<T> = core::result::Result<T, Error>;