Trait async_blocking_stdio::StdioExt
source · 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
.
Object Safety§
This trait is not object safe.