dope-sys 0.32.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::memory;

/// The exact construction failure survives every later cleanup attempt.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Primary<M, R, B> {
    Ring(M),
    Memory(memory::Error),
    Register(R),
    Provided(B),
}

impl<M, R, B> From<memory::Error> for Primary<M, R, B> {
    fn from(error: memory::Error) -> Self {
        Self::Memory(error)
    }
}