Skip to main content

load_attachment

Function load_attachment 

Source
pub async fn load_attachment(path: &Path) -> Result<LoadedAttachment, String>
Expand description

Asynchronous bounded read on an opened regular-file handle. On Unix, O_NONBLOCK avoids FIFO-open hangs and O_NOFOLLOW refuses symlink leaves. Parent symlinks are allowed: selection of a local path is explicit consent.