Trait Reopen

Source
pub trait Reopen: Write {
    type Reopened: Read;

    // Required method
    fn reopen(self) -> Result<Self::Reopened>;
}
Expand description

An implementation of Reopen is a writer that can be closed and reopened to read what was just written.

Required Associated Types§

Source

type Reopened: Read

The type returned by reopen, which must implement Read.

Required Methods§

Source

fn reopen(self) -> Result<Self::Reopened>

Consume this writer and reopen it as another type Self::Reopened, which supports reading to read what was just written.

Implementations on Foreign Types§

Source§

impl Reopen for Vec<u8>

Implementors§