pub struct FileWriter { /* private fields */ }Implementations§
Source§impl FileWriter
impl FileWriter
pub async fn write_bytes(&mut self, buf: Bytes) -> Result<usize>
Sourcepub async fn hsync(&mut self) -> Result<()>
pub async fn hsync(&mut self) -> Result<()>
Persist all data written so far while keeping the writer open.
On success, new readers can observe the synchronized length and the current replicated block has been synchronized by every DataNode in its pipeline. Erasure-coded files do not currently support this call.
pub async fn close(&mut self) -> Result<()>
Trait Implementations§
Source§impl Drop for FileWriter
impl Drop for FileWriter
Auto Trait Implementations§
impl !RefUnwindSafe for FileWriter
impl !UnwindSafe for FileWriter
impl Freeze for FileWriter
impl Send for FileWriter
impl Sync for FileWriter
impl Unpin for FileWriter
impl UnsafeUnpin for FileWriter
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