Trait anstream::stream::AsLockedWrite

source ·
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§

source

type Write<'w>: RawStream + 'w where Self: 'w

Locked writer type

Required Methods§

source

fn as_locked_write(&mut self) -> Self::Write<'_>

Lock a stream

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AsLockedWrite for Box<dyn Write>

§

type Write<'w> = &'w mut Box<dyn Write>

source§

fn as_locked_write(&mut self) -> Self::Write<'_>

source§

impl AsLockedWrite for Vec<u8>

§

type Write<'w> = &'w mut Vec<u8>

source§

fn as_locked_write(&mut self) -> Self::Write<'_>

source§

impl AsLockedWrite for File

§

type Write<'w> = &'w mut File

source§

fn as_locked_write(&mut self) -> Self::Write<'_>

source§

impl AsLockedWrite for Stderr

§

type Write<'w> = StderrLock<'w>

source§

fn as_locked_write(&mut self) -> Self::Write<'_>

source§

impl AsLockedWrite for StderrLock<'static>

§

type Write<'w> = &'w mut StderrLock<'static>

source§

fn as_locked_write(&mut self) -> Self::Write<'_>

source§

impl AsLockedWrite for Stdout

§

type Write<'w> = StdoutLock<'w>

source§

fn as_locked_write(&mut self) -> Self::Write<'_>

source§

impl AsLockedWrite for StdoutLock<'static>

§

type Write<'w> = &'w mut StdoutLock<'static>

source§

fn as_locked_write(&mut self) -> Self::Write<'_>

Implementors§