dope-sys 0.77.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::ring::{create::Cause, layout::Layout};

/// Setup rejection or retained ownership of incomplete mapping cleanup.
#[derive(Debug)]
pub enum Error<S, M, C> {
    Refused(Cause<S, M>),
    Cleanup(C),
}

impl<S, M, C> From<Layout> for Error<S, M, C> {
    fn from(cause: Layout) -> Self {
        Self::Refused(Cause::Layout(cause))
    }
}