Skip to main content

try_take_file

Function try_take_file 

Source
pub(crate) fn try_take_file(handle: Handle, dst: &mut Vec<u64>) -> Result<()>
Available on crate feature pager and Unix only.
Expand description

Fallible counterpart to take_file. Returns Err instead of panicking on I/O failure. The handle is consumed in either case; on Err, dst may hold partial data and the scratch file is unlinked when the inner is dropped.