pub struct FileResource<T: FromStr + Clone> { /* private fields */ }
Expand description
A resource which mirrors a flat file. holding an internal cache of it’s contents and reloading them on demand if they have changed.
calling Resource::load on a fileresouce returns a view into the contents of the file at the time load()
was called
Implementations§
Trait Implementations§
Source§impl<T> Resource<T> for &FileResource<T>
impl<T> Resource<T> for &FileResource<T>
Auto Trait Implementations§
impl<T> !Freeze for FileResource<T>
impl<T> RefUnwindSafe for FileResource<T>
impl<T> Send for FileResource<T>
impl<T> Sync for FileResource<T>
impl<T> Unpin for FileResource<T>
impl<T> UnwindSafe for FileResource<T>
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