pub struct BeginWriteValue<'writer, H>where
H: WithHandle,{ /* private fields */ }
Expand description
The start of a write, before an exclusive file has been allocated. This allows for bringing your own file, such as by rename, or file clone.
Implementations§
Source§impl<H> BeginWriteValue<'_, H>where
H: WithHandle,
impl<H> BeginWriteValue<'_, H>where
H: WithHandle,
Sourcepub fn clone_file(self, file: &mut File) -> PubResult<ValueWriter>
pub fn clone_file(self, file: &mut File) -> PubResult<ValueWriter>
Clone an entire file in. If cloning fails, this will fall back to copying the provided file. Its file position may be altered.
Sourcepub fn begin(self) -> PubResult<ValueWriter>
pub fn begin(self) -> PubResult<ValueWriter>
Assign an exclusive file for writing a value.
Auto Trait Implementations§
impl<'writer, H> Freeze for BeginWriteValue<'writer, H>
impl<'writer, H> RefUnwindSafe for BeginWriteValue<'writer, H>where
H: RefUnwindSafe,
impl<'writer, H> Send for BeginWriteValue<'writer, H>where
H: Send,
impl<'writer, H> Sync for BeginWriteValue<'writer, H>where
H: Sync,
impl<'writer, H> Unpin for BeginWriteValue<'writer, H>
impl<'writer, H> !UnwindSafe for BeginWriteValue<'writer, H>
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