pub struct RollingFileSystem {
pub base_path: PathBuf,
pub file_name_template: RollingFileNameTemplate,
}Fields§
§base_path: PathBuf§file_name_template: RollingFileNameTemplateImplementations§
Source§impl RollingFileSystem
impl RollingFileSystem
pub fn new_file_path(&self, created_at: FileNameTimeStamp) -> PathBuf
pub fn open_new_file_for_writing( &self, created_at: FileNameTimeStamp, ) -> IoResult<OpenRollingFile>
Sourcepub fn read_all_dir_entries_filtered(
&self,
filter: &FileInfoFilter,
) -> IoResult<Vec<RollingFileInfoWithSize>>
pub fn read_all_dir_entries_filtered( &self, filter: &FileInfoFilter, ) -> IoResult<Vec<RollingFileInfoWithSize>>
Read all entries in the base path directory
The matching entries are returned in no particular order.
Sourcepub fn read_all_dir_entries_filtered_chronologically(
&self,
filter: &FileInfoFilter,
) -> IoResult<Vec<RollingFileInfoWithSize>>
pub fn read_all_dir_entries_filtered_chronologically( &self, filter: &FileInfoFilter, ) -> IoResult<Vec<RollingFileInfoWithSize>>
Read all entries in the base path directory, sorted by created at in ascending order
pub fn read_most_recent_dir_entry( &self, ) -> IoResult<Option<RollingFileInfoWithSize>>
Trait Implementations§
Source§impl Clone for RollingFileSystem
impl Clone for RollingFileSystem
Source§fn clone(&self) -> RollingFileSystem
fn clone(&self) -> RollingFileSystem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RollingFileSystem
impl Debug for RollingFileSystem
Source§impl PartialEq for RollingFileSystem
impl PartialEq for RollingFileSystem
impl Eq for RollingFileSystem
impl StructuralPartialEq for RollingFileSystem
Auto Trait Implementations§
impl Freeze for RollingFileSystem
impl RefUnwindSafe for RollingFileSystem
impl Send for RollingFileSystem
impl Sync for RollingFileSystem
impl Unpin for RollingFileSystem
impl UnwindSafe for RollingFileSystem
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