dope-core 0.74.0

Owned native I/O and completion driver for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{
    Errno,
    driver::route::{self, kind},
    io::{self, event::{self, entry::Entry}, transfer::Len},
};

pub type Completion<'d, S = route::Route> = Entry<'d, kind::Send, Result<Len, Errno>, S>;

impl<'d, S: route::Selection> From<Completion<'d, S>> for io::Event<'d> {
    fn from(done: Completion<'d, S>) -> Self {
        Self(event::Kind::Send(done.erase_route()))
    }
}