pub enum Writes {
FromStart,
Append,
}Expand description
How the returned handle writes.
Append is O_APPEND / FILE_APPEND_DATA: every write lands at the
current end of file. That is not a convenience — it is what keeps an
append-only log append-only when a writer thread and a reader disagree
about the offset, and it is why this is a parameter rather than something
the caller arranges with a seek.
Variants§
Trait Implementations§
impl Copy for Writes
impl Eq for Writes
impl StructuralPartialEq for Writes
Auto Trait Implementations§
impl Freeze for Writes
impl RefUnwindSafe for Writes
impl Send for Writes
impl Sync for Writes
impl Unpin for Writes
impl UnsafeUnpin for Writes
impl UnwindSafe for Writes
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