pub struct RealIo();
Trait Implementations§
source§impl Io for RealIo
impl Io for RealIo
type Args = Args
type Stdout = Stdout
type File = File
type Metadata = Metadata
type DirEntry = DirEntry
type Instant = Instant
fn args(&self) -> Self::Args
fn create(&self, path: &str) -> Result<Self::File>
fn open(&self, path: &str) -> Result<Self::File>
fn metadata(&self, path: &str) -> Result<Metadata>
fn read_dir(&self, path: &str) -> Result<Vec<Self::DirEntry>>
fn create_dir(&self, path: &str) -> Result<()>
fn stdout(&self) -> Self::Stdout
fn now(&self) -> Instant
fn current_dir(&self) -> Result<String>
fn set_current_dir(&self, path: &str) -> Result<()>
fn read(&self, path: &str) -> Result<Vec<u8>, Error>
fn read_to_string(&self, path: &str) -> Result<String, Error>
fn write(&self, path: &str, data: &[u8]) -> Result<(), Error>
fn create_dir_recursively(&self, path: &str) -> Result<(), Error>
fn write_recursively(&self, path: &str, data: &[u8]) -> Result<(), Error>
fn read_dir_type( &self, path: &str, is_dir: bool ) -> Result<Vec<Self::DirEntry>, Error>
Auto Trait Implementations§
impl Freeze for RealIo
impl RefUnwindSafe for RealIo
impl Send for RealIo
impl Sync for RealIo
impl Unpin for RealIo
impl UnwindSafe for RealIo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more