pub trait PinFileReader: Send + Sync {
// Required method
fn read(
&self,
account: &Person,
path: &Path,
) -> Result<FileRead, ReadFailure>;
}Expand description
Reads the pin file of an account.
account is the candidate person, with home and uid among its attributes as its
directory gave them, and path the file as the template rendered it: absolute, with no
... The reader makes whatever checks the file deserves where it has access (the owner,
who may write it, its parents, symlinks) and reports their result; the library does not
repeat them. A file that is not there is FileRead::Missing, not a refusal.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".