tokio-uring-xitca 0.2.0

a fork of tokio-uring with miniaml maintenance
Documentation
1
2
3
4
5
6
7
8
use std::ffi::CString;
use std::io;
use std::path::Path;

pub(crate) fn cstr(p: &Path) -> io::Result<CString> {
    use std::os::unix::ffi::OsStrExt;
    Ok(CString::new(p.as_os_str().as_bytes())?)
}