Skip to main content

set_file

Function set_file 

Source
pub fn set_file(path: Option<&str>) -> Result<(), RuntimeError>
Expand description

Write to path, or pass None to stop writing to a file.

ยงErrors

Returns ShimError::Failed if the file cannot be opened, or ShimError::Nul for an interior NUL in path. Both are reachable as RuntimeError.