Trait typestate_automata::TryWriteFile [−][src]
pub trait TryWriteFile { fn try_write_file<P: AsRef<Path>>(self, path: P) -> Result<File>; }
Expand description
Write to file operation.
Required methods
Try to write self
to the file in path
.
This operation uses the core::fmt::Display
representation for its output.
If successful, returns the written std::fs::File
, otherwise, an std::io::Error
is returned.
Errors
Will return Err
if one of the file operations fails.