pub struct LogStructured<GC: GarbageChecker> { /* private fields */ }
Implementations§
Source§impl<GC: GarbageChecker> LogStructured<GC>
impl<GC: GarbageChecker> LogStructured<GC>
pub fn new( device: SeekableAsyncFile, device_offset: u64, device_size: u64, journal: Arc<WriteJournal>, garbage_checker: GC, padding_indicator: Vec<u8>, free_space_gauge: Arc<AtomicU64>, ) -> Self
pub fn physical_offset(&self, virtual_offset: u64) -> u64
pub async fn bump_tail(&self, usage: usize) -> TailBump
pub async fn commit_tail_bump(&self, bump: TailBump)
pub async fn start_background_loops(&self)
pub async fn format_device(&self)
pub fn get_head_and_tail(&self) -> (u64, u64)
pub async fn load_state_from_device(&self)
Auto Trait Implementations§
impl<GC> !Freeze for LogStructured<GC>
impl<GC> !RefUnwindSafe for LogStructured<GC>
impl<GC> Send for LogStructured<GC>where
GC: Send,
impl<GC> Sync for LogStructured<GC>where
GC: Sync,
impl<GC> Unpin for LogStructured<GC>where
GC: Unpin,
impl<GC> !UnwindSafe for LogStructured<GC>
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