Struct sea_streamer_file::FileSink
source ยท pub struct FileSink { /* private fields */ }
Expand description
Buffered file writer.
If the file is removed from the file system, the stream ends.
Implementationsยง
sourceยงimpl FileSink
impl FileSink
pub fn new(file: AsyncFile, quota: u64) -> Result<Self, FileErr>
pub async fn flush(&mut self, marker: u32) -> Result<(), FileErr>
pub async fn sync_all(&mut self) -> Result<(), FileErr>
pub async fn end(self) -> Result<AsyncFile, FileErr>
pub fn as_writer(&mut self) -> FileSinkWriter โ
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for FileSink
impl RefUnwindSafe for FileSink
impl Send for FileSink
impl Sync for FileSink
impl Unpin for FileSink
impl UnwindSafe for FileSink
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