pub enum ExistingOutput {
Refuse,
Replace,
}Expand description
What an output does with a file already at its path.
Variants§
Refuse
Refuse it, before writing and again at the rename (the default).
Replace
Replace a regular file there once the output is whole, by rename. A symbolic link, a device, a FIFO, a socket or a directory is refused.
Trait Implementations§
Source§impl Clone for ExistingOutput
impl Clone for ExistingOutput
impl Copy for ExistingOutput
Source§impl Debug for ExistingOutput
impl Debug for ExistingOutput
Source§impl Default for ExistingOutput
impl Default for ExistingOutput
impl Eq for ExistingOutput
Source§impl PartialEq for ExistingOutput
impl PartialEq for ExistingOutput
impl StructuralPartialEq for ExistingOutput
Auto Trait Implementations§
impl Freeze for ExistingOutput
impl RefUnwindSafe for ExistingOutput
impl Send for ExistingOutput
impl Sync for ExistingOutput
impl Unpin for ExistingOutput
impl UnsafeUnpin for ExistingOutput
impl UnwindSafe for ExistingOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more