pub enum Ownership {
Owned,
Borrowed,
}
Expand description
Determines the ownership of a temporary file.
Variants§
Owned
The file is owned by TempFile
and will be deleted when
the last reference to it is dropped.
Borrowed
The file is borrowed by TempFile
and will be left untouched
when the last reference to it is dropped.
Trait Implementations§
impl Copy for Ownership
impl Eq for Ownership
impl StructuralPartialEq for Ownership
Auto Trait Implementations§
impl Freeze for Ownership
impl RefUnwindSafe for Ownership
impl Send for Ownership
impl Sync for Ownership
impl Unpin for Ownership
impl UnwindSafe for Ownership
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