Skip to main content

dope_sys/ring/create/
error.rs

1use crate::ring::{create::Cause, layout::Layout};
2
3/// Setup rejection or retained ownership of incomplete mapping cleanup.
4#[derive(Debug)]
5pub enum Error<S, M, C> {
6    Refused(Cause<S, M>),
7    Cleanup(C),
8}
9
10impl<S, M, C> From<Layout> for Error<S, M, C> {
11    fn from(cause: Layout) -> Self {
12        Self::Refused(Cause::Layout(cause))
13    }
14}