pub trait StdioExt: StdioSealed {
type Handle;
type Locked<'lt>;
type LockedAndSync<'lt>;
// Required method
fn async_handle() -> Self::Handle
where Self::Handle: Sized;
}
Expand description
Extension trait that provides easy access to the corresponding asynchronous types for the
streams in std::io
Required Associated Types§
Sourcetype LockedAndSync<'lt>
type LockedAndSync<'lt>
Lock on the async handle to this async-wrapped/unblocked standard io stream, wrapped again
so that the synchronous traits from std::io
can be used on it.
Required Methods§
Sourcefn async_handle() -> Self::Handle
fn async_handle() -> Self::Handle
Get the handle to the global asynchronous version of this standard io stream as provided by
async_blocking_stdio
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.