dope-uring 0.21.0

Owned io_uring backend for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::os::fd;

use dope_sys::{Errno, io::file};

/// One completed open and the descriptor it owns on success.
#[must_use = "an open completion must be delivered or reclaimed"]
pub struct Opened(pub(crate) Result<fd::OwnedFd, Errno>);

impl file::Opened for Opened {
    fn deliver(self) -> Result<fd::OwnedFd, Errno> {
        self.0
    }
}