pub struct MultiStreamWriter { /* private fields */ }Available on crate feature
std only.Expand description
Writer for a Multi-Stream File.
Implementations§
Source§impl MultiStreamWriter
impl MultiStreamWriter
Sourcepub fn new<P: AsRef<Path>>(path: P) -> Result<Arc<MultiStreamWriter>, Error>
pub fn new<P: AsRef<Path>>(path: P) -> Result<Arc<MultiStreamWriter>, Error>
Creates a new writer against the provided path. If the file exists, will be truncated and any data removed. If it doesn’t exist, it will be created.
Sourcepub fn new_stream(self: &Arc<Self>) -> StreamWriter
pub fn new_stream(self: &Arc<Self>) -> StreamWriter
Creates a new buffered data stream within this writer.
pub fn len(&self) -> Result<u64, Error>
pub fn is_empty(&self) -> Result<bool, Error>
Trait Implementations§
Source§impl Clone for MultiStreamWriter
impl Clone for MultiStreamWriter
Source§fn clone(&self) -> MultiStreamWriter
fn clone(&self) -> MultiStreamWriter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiStreamWriter
impl RefUnwindSafe for MultiStreamWriter
impl Send for MultiStreamWriter
impl Sync for MultiStreamWriter
impl Unpin for MultiStreamWriter
impl UnwindSafe for MultiStreamWriter
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