dope-sys 0.29.1

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use o3::base::num::bounded;

use crate::io::reactor::complete::message::{Cut, Error};

/// Parsed regions borrow exactly the original native completion frame.
pub trait Output<'a>: Sized {
    type Capacity: Copy + Eq + Into<bounded::U64<0, { u64::MAX }>>;
    type Length: Copy + Eq + Into<bounded::U64<0, { u64::MAX }>>;

    fn parse(buffer: &'a [u8]) -> Result<Self, Error<Self::Capacity, Self::Length>>;
    fn name_cut(&self) -> Cut;
    fn payload_cut(&self) -> Cut;
    fn name(&self) -> &'a [u8];
    fn payload(&self) -> &'a [u8];
}