Struct io_providers::SimulatedIo [−][src]
pub struct SimulatedIo { /* fields omitted */ }
Io
implementation using a simulated environment.
See env::SimulatedEnv
and std_streams::SimulatedStdStreams
for more information.
Methods
impl SimulatedIo
[src]
impl SimulatedIo
pub fn new() -> Result<SimulatedIo>
[src]
pub fn new() -> Result<SimulatedIo>
Creates a new SimulatedIo
.
Trait Implementations
impl Io for SimulatedIo
[src]
impl Io for SimulatedIo
type E = SimulatedEnv
type F = TempFs
type S = SimulatedStdStreams
fn env(&self) -> &SimulatedEnv
[src]
fn env(&self) -> &SimulatedEnv
Gets a reference to the env::Env
provider.
fn env_mut(&mut self) -> &mut SimulatedEnv
[src]
fn env_mut(&mut self) -> &mut SimulatedEnv
Gets a mutable reference to the env::Env
provider.
fn fs(&self) -> &TempFs
[src]
fn fs(&self) -> &TempFs
Gets a reference to the fs::Fs
provider.
fn fs_mut(&mut self) -> &mut TempFs
[src]
fn fs_mut(&mut self) -> &mut TempFs
Gets a mutable reference to the fs::Fs
provider.
fn std_streams(&mut self) -> &mut SimulatedStdStreams
[src]
fn std_streams(&mut self) -> &mut SimulatedStdStreams
Gets a mutable reference to the std_streams::StdStreams
.
Auto Trait Implementations
impl Send for SimulatedIo
impl Send for SimulatedIo
impl Sync for SimulatedIo
impl Sync for SimulatedIo