Skip to main content

dope_runtime/process/failure/
create.rs

1//! Process runtime construction failures.
2
3use o3::alloc;
4
5use crate::process::failure::config;
6
7/// Failure to allocate or validate a process runtime.
8
9#[derive(Debug)]
10pub enum Error {
11    Config(config::Error),
12    Allocation(alloc::Error),
13}
14
15impl From<alloc::Error> for Error {
16    fn from(error: alloc::Error) -> Self {
17        Self::Allocation(error)
18    }
19}