pub struct AuthorizedFile { /* private fields */ }Expand description
The pins in a file per user: a PinSource that reads only the file of the account it
is asked about.
Implementations§
Source§impl AuthorizedFile
impl AuthorizedFile
Sourcepub fn new(template: impl Into<String>) -> Result<Self, TemplateError>
pub fn new(template: impl Into<String>) -> Result<Self, TemplateError>
A source finding the file at template, read by DirectReader until
reader says otherwise.
§Errors
For an empty template, or a { that is not {home}, {name} or {id}.
Sourcepub fn reader(self, reader: Arc<dyn PinFileReader>) -> Self
pub fn reader(self, reader: Arc<dyn PinFileReader>) -> Self
This source reading files through reader. Nothing else touches the file system.
Trait Implementations§
Source§impl Debug for AuthorizedFile
impl Debug for AuthorizedFile
Auto Trait Implementations§
impl !RefUnwindSafe for AuthorizedFile
impl !UnwindSafe for AuthorizedFile
impl Freeze for AuthorizedFile
impl Send for AuthorizedFile
impl Sync for AuthorizedFile
impl Unpin for AuthorizedFile
impl UnsafeUnpin for AuthorizedFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more