pub struct MetacacheWriter<W> { /* private fields */ }
Implementations§
Source§impl<W: AsyncWrite + Unpin> MetacacheWriter<W>
impl<W: AsyncWrite + Unpin> MetacacheWriter<W>
pub fn new(wr: W) -> Self
pub async fn flush(&mut self) -> Result<()>
pub async fn init(&mut self) -> Result<()>
pub async fn write(&mut self, objs: &[MetaCacheEntry]) -> Result<()>
pub async fn write_obj(&mut self, obj: &MetaCacheEntry) -> Result<()>
pub async fn close(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for MetacacheWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for MetacacheWriter<W>where
W: RefUnwindSafe,
impl<W> Send for MetacacheWriter<W>where
W: Send,
impl<W> Sync for MetacacheWriter<W>where
W: Sync,
impl<W> Unpin for MetacacheWriter<W>where
W: Unpin,
impl<W> UnwindSafe for MetacacheWriter<W>where
W: 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