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);
}
}