dope-core 0.77.0

Owned native I/O and completion driver for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use o3::mem::Return;

use crate::{driver, io::fd::handles::OutboundSlot};

pub(super) mod creation;

pub(in crate::io::fd) struct Discard<'d> {
    pub(in crate::io::fd) driver: driver::Reference<'d>,
}

impl Return for Discard<'_> {
    type Item = OutboundSlot;

    fn return_item(self, slot: Self::Item) {
        self.driver.descriptors().discard(slot);
    }
}