pub struct PstFileLockGuard<'a, Pst>where
Pst: PstFile,{ /* private fields */ }Expand description
This is the public interface for writing to a PST.
Implementations§
Source§impl<'a, Pst> PstFileLockGuard<'a, Pst>where
Pst: PstFile,
impl<'a, Pst> PstFileLockGuard<'a, Pst>where
Pst: PstFile,
Sourcepub fn flush(&mut self) -> Result<()>
pub fn flush(&mut self) -> Result<()>
Explicitly flush pending updates to the PST file. This will still happen implicitly when
the PstFileLockGuard is dropped, but this allows you to handle errors.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Pst> Freeze for PstFileLockGuard<'a, Pst>
impl<'a, Pst> !RefUnwindSafe for PstFileLockGuard<'a, Pst>
impl<'a, Pst> !Send for PstFileLockGuard<'a, Pst>
impl<'a, Pst> !Sync for PstFileLockGuard<'a, Pst>
impl<'a, Pst> Unpin for PstFileLockGuard<'a, Pst>
impl<'a, Pst> UnsafeUnpin for PstFileLockGuard<'a, Pst>
impl<'a, Pst> !UnwindSafe for PstFileLockGuard<'a, Pst>
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