devela_base_std 0.26.0

base std shared functionality for devela
Documentation
// devela::sys::os::fd::_reexport

#[cfg(all(not(miri), any(unix, target_os = "wasi")))]
pub use fd_reexports::*;
#[cfg(all(not(miri), any(unix, target_os = "wasi")))]
mod fd_reexports {
    use crate::{_TAG_FS, _TAG_GUARD, _TAG_LIFETIME, _TAG_UID, _TAG_VALUE, _reexport};

    _reexport! { rust: std::os::fd, location: "sys/os/fd", tag: _TAG_FS!() _TAG_GUARD!(),
        doc: "An owned file descriptor.",
        @OwnedFd as FdOwned
    }
    _reexport! { rust: std::os::fd, location: "sys/os/fd", tag: _TAG_FS!() _TAG_LIFETIME!(),
        doc: "A borrowed file descriptor.",
        @BorrowedFd as FdBorrowed
    }
    _reexport! { rust: std::os::fd, location: "sys/os/fd", tag: _TAG_FS!(),
        doc: "A trait to borrow the file descriptor from an underlying object.",
        AsFd
    }

    _reexport! { rust: std::os::fd, location: "sys/os/fd",
        tag: _TAG_FS!() _TAG_UID!(),
        doc: "A trait to extract the raw file descriptor from an underlying object.",
        @AsRawFd as AsFdRaw
    }
    _reexport! { rust: std::os::fd, location: "sys/os/fd",
        tag: _TAG_FS!() _TAG_UID!() _TAG_VALUE!(),
        doc: "Expresses the ability to construct an object from a raw file descriptor.",
        @FromRawFd as FromFdRaw
    }
    _reexport! { rust: std::os::fd, location: "sys/os/fd",
        tag: _TAG_FS!() _TAG_UID!()  _TAG_VALUE!(),
        doc: "Expresses the ability to consume an object and own its raw file descriptor.",
        @IntoRawFd as IntoFdRaw
    }
}