Struct nix_compat::nar::writer::sync::FileManualWrite
source · pub struct FileManualWrite {
size: u64,
}
Expand description
Content of a NAR node that represents a file whose contents are being written out manually.
Returned by the file_manual_write
function.
Fields§
§size: u64
Implementations§
source§impl FileManualWrite
impl FileManualWrite
sourcepub fn close<W: Write>(self, writer: &mut W) -> Result<()>
pub fn close<W: Write>(self, writer: &mut W) -> Result<()>
Finish writing the file structure to the NAR after having manually written the file contents.
Important: This must be called with the writer returned by file_manual_write after the file contents have been manually and fully written. Otherwise the resulting NAR file will be invalid.
Auto Trait Implementations§
impl Freeze for FileManualWrite
impl RefUnwindSafe for FileManualWrite
impl Send for FileManualWrite
impl Sync for FileManualWrite
impl Unpin for FileManualWrite
impl UnwindSafe for FileManualWrite
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