Struct age::IdentityFile
source · [−]pub struct IdentityFile { /* private fields */ }
Expand description
A list of identities that has been parsed from some input file.
Implementations
sourceimpl IdentityFile
impl IdentityFile
sourcepub fn from_file(filename: String) -> Result<Self>
pub fn from_file(filename: String) -> Result<Self>
Parses one or more identities from a file containing valid UTF-8.
sourcepub fn from_buffer<R: BufRead>(data: R) -> Result<Self>
pub fn from_buffer<R: BufRead>(data: R) -> Result<Self>
Parses one or more identities from a buffered input containing valid UTF-8.
sourcepub fn into_identities(self) -> Vec<IdentityFileEntry>
pub fn into_identities(self) -> Vec<IdentityFileEntry>
Returns the identities in this file.
Auto Trait Implementations
impl RefUnwindSafe for IdentityFile
impl Send for IdentityFile
impl Sync for IdentityFile
impl Unpin for IdentityFile
impl UnwindSafe for IdentityFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more