pub trait AsLockedWrite: Sealed {
type Write<'w>: RawStream + 'w
where Self: 'w;
// Required method
fn as_locked_write(&mut self) -> Self::Write<'_>;
}
Expand description
Lock a stream
Required Associated Types§
Required Methods§
Sourcefn as_locked_write(&mut self) -> Self::Write<'_>
fn as_locked_write(&mut self) -> Self::Write<'_>
Lock a stream
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.