pub struct StagedWrite {
pub temp_path: PathBuf,
pub target_path: PathBuf,
pub content_sha256: String,
pub original_permissions: Option<Permissions>,
}Expand description
A single staged write: temp file is written and fsynced, ready for rename.
Fields§
§temp_path: PathBufPath to the staged temp file (fd already released via into_temp_path).
target_path: PathBufFinal target path.
content_sha256: StringSHA-256 hex digest of the written content.
original_permissions: Option<Permissions>Original file permissions to copy to temp before rename.
Auto Trait Implementations§
impl Freeze for StagedWrite
impl RefUnwindSafe for StagedWrite
impl Send for StagedWrite
impl Sync for StagedWrite
impl Unpin for StagedWrite
impl UnsafeUnpin for StagedWrite
impl UnwindSafe for StagedWrite
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