pub struct FilesetOptions {
pub reload_interval_seconds: Option<u32>,
}
Expand description
Options for opening an MTBL fileset.
§Examples
FilesetOptions::new().reload_interval_seconds(10).open_from_path("/tmp/data-fileset")
Fields§
§reload_interval_seconds: Option<u32>
How often, in seconds, to reload the fileset description file to look for new file entries. The mtbl default is 60 seconds.
Implementations§
Source§impl FilesetOptions
impl FilesetOptions
Sourcepub fn new() -> FilesetOptions
pub fn new() -> FilesetOptions
Create a FilesetOptions
with only defaults.
Sourcepub fn reload_interval_seconds(
&self,
reload_interval_seconds: u32,
) -> FilesetOptions
pub fn reload_interval_seconds( &self, reload_interval_seconds: u32, ) -> FilesetOptions
Create a modified FilesetOptions
with reload_interval_seconds set.
Trait Implementations§
Source§impl Clone for FilesetOptions
impl Clone for FilesetOptions
Source§fn clone(&self) -> FilesetOptions
fn clone(&self) -> FilesetOptions
Returns a copy 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 moreimpl Copy for FilesetOptions
Auto Trait Implementations§
impl Freeze for FilesetOptions
impl RefUnwindSafe for FilesetOptions
impl Send for FilesetOptions
impl Sync for FilesetOptions
impl Unpin for FilesetOptions
impl UnwindSafe for FilesetOptions
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