pub struct WindowManager<M: MemoryMap> { /* private fields */ }Implementations§
Source§impl<M: MemoryMap> WindowManager<M>
impl<M: MemoryMap> WindowManager<M>
pub fn new(file: File, chunk_size: u64, max_windows: usize) -> Result<Self>
pub fn new_with_strategy( file: File, chunk_size: u64, max_windows: usize, strategy: ExperimentalMmapStrategy, ) -> Result<Self>
pub fn new_snapshot( file: File, chunk_size: u64, max_windows: usize, strategy: ExperimentalMmapStrategy, ) -> Result<Self>
pub fn new_writer_owned( file: File, chunk_size: u64, max_windows: usize, ) -> Result<Self>
pub fn new_writer_owned_with_strategy( file: File, chunk_size: u64, max_windows: usize, strategy: ExperimentalMmapStrategy, ) -> Result<Self>
pub fn stats(&self) -> WindowManagerStats
pub fn get_slice(&mut self, position: u64, size: u64) -> Result<&[u8]>
Source§impl<M: MemoryMapMut> WindowManager<M>
impl<M: MemoryMapMut> WindowManager<M>
pub fn get_slice_mut(&mut self, position: u64, size: u64) -> Result<&mut [u8]>
Sourcepub fn sync(&mut self, logical_size: u64, header_bytes: &[u8]) -> Result<()>
pub fn sync(&mut self, logical_size: u64, header_bytes: &[u8]) -> Result<()>
Syncs all file data to disk
Sourcepub fn post_change(&mut self, logical_size: u64) -> Result<()>
pub fn post_change(&mut self, logical_size: u64) -> Result<()>
Publish mmap writes to stock follow readers by triggering an inotify event with the same-size truncate used by systemd.
Auto Trait Implementations§
impl<M> Freeze for WindowManager<M>
impl<M> RefUnwindSafe for WindowManager<M>where
M: RefUnwindSafe,
impl<M> Send for WindowManager<M>where
M: Send,
impl<M> Sync for WindowManager<M>where
M: Sync,
impl<M> Unpin for WindowManager<M>where
M: Unpin,
impl<M> UnsafeUnpin for WindowManager<M>
impl<M> UnwindSafe for WindowManager<M>where
M: UnwindSafe,
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