dope-sys 0.25.0

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

use o3::base::time::Positive;

/// Exact kernel-watchdog construction failure.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Error {
    Range { deadline: Positive },
    Unsupported { deadline: Positive },
    Create(crate::Errno),
    Arm(crate::Errno),
}

const _: () = {
    assert!(mem::size_of::<Error>() == 24);
    assert!(mem::size_of::<Positive>() == 16);
    assert!(mem::align_of::<Error>() == mem::align_of::<Positive>());
};