Skip to main content

create_trace_file

Function create_trace_file 

Source
pub fn create_trace_file(path: &Path) -> Result<File>
Expand description

Creates the file a trace is written to, readable only by its owner where the platform can say so.

A full-capture trace holds whatever the host answered with, so it is not a file to leave world-readable by default. The mode applies to a file this call creates; one that already exists keeps the permissions it has.