pub struct LogfilePartition { /* private fields */ }Implementations§
Source§impl LogfilePartition
impl LogfilePartition
pub fn create(path: &Path, time: u64) -> Result<LogfilePartition, Error>
pub fn open( path: &Path, time_head: u64, time_tail: u64, offset: u64, ) -> LogfilePartition
pub fn append_measurement( &mut self, measurement: &Measurement, ) -> Result<(), Error>
pub fn delete(&self) -> Result<(), Error>
pub fn get_file_name(&self) -> String
pub fn get_file_path(&self) -> PathBuf
pub fn get_file_offset(&self) -> u64
pub fn get_time_head(&self) -> u64
pub fn get_time_tail(&self) -> u64
Trait Implementations§
Source§impl Clone for LogfilePartition
impl Clone for LogfilePartition
Source§fn clone(&self) -> LogfilePartition
fn clone(&self) -> LogfilePartition
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 moreAuto Trait Implementations§
impl Freeze for LogfilePartition
impl RefUnwindSafe for LogfilePartition
impl Send for LogfilePartition
impl Sync for LogfilePartition
impl Unpin for LogfilePartition
impl UnwindSafe for LogfilePartition
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