pub trait Sealed { }🔬This is a nightly-only experimental API. (
sealed)Expand description
This trait being unreachable from outside the crate prevents outside implementations of our extension traits. This allows adding more trait methods in the future.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl Sealed for OsStr
Allows extension traits within std.
impl Sealed for OsString
Allows extension traits within std.
impl Sealed for DirEntry
Available on non-Hermit and not ((Fortanix and SGX, or WebAssembly and non-WASI)) and (Unix) only.
Allows extension traits within std.
impl Sealed for File
impl Sealed for FileTimes
impl Sealed for Stderr
impl Sealed for StderrLock<'_>
impl Sealed for Stdin
impl Sealed for StdinLock<'_>
impl Sealed for Stdout
impl Sealed for StdoutLock<'_>
impl Sealed for TcpStream
Available on (Android or Cygwin or Linux) and not ((Fortanix and SGX, or WebAssembly and non-WASI)) only.
impl Sealed for BorrowedFd<'_>
Available on Hermit or Motor OS or Trusty or Unix or WASI only.
impl Sealed for OwnedFd
Available on Hermit or Motor OS or Trusty or Unix or WASI only.
impl Sealed for SocketAddr
Available on non-Hermit and not ((Fortanix and SGX, or WebAssembly and non-WASI)) and (Unix) only.
impl Sealed for UnixDatagram
Available on non-Hermit and not ((Fortanix and SGX, or WebAssembly and non-WASI)) and (Unix) only.
Allows extension traits within std.
impl Sealed for UnixStream
Available on non-Hermit and not ((Fortanix and SGX, or WebAssembly and non-WASI)) and (Unix) only.
Allows extension traits within std.
impl Sealed for Child
Allows extension traits within std.
impl Sealed for Command
Allows extension traits within std.
impl Sealed for ExitCode
Allows extension traits within std.
impl Sealed for ExitStatus
Allows extension traits within std.
impl Sealed for ExitStatusError
Allows extension traits within std.