pub enum AreaMode {
Off,
Mode(SourceMode),
}Expand description
How a single area treats deletion, including the library-only off value.
off is expressible only for the library area: it deliberately arms deletion
of library-exclusive files by suppressing the implicit copy-protector, so a
typo can never silently disarm that safety. copy and mirror map straight
onto the matching SourceMode.
Variants§
Off
Suppress the implicit library copy-protector (arm library deletions).
Mode(SourceMode)
Treat the area with the given SourceMode.
Trait Implementations§
impl Copy for AreaMode
Source§impl<'de> Deserialize<'de> for AreaMode
impl<'de> Deserialize<'de> for AreaMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AreaMode
impl StructuralPartialEq for AreaMode
Auto Trait Implementations§
impl Freeze for AreaMode
impl RefUnwindSafe for AreaMode
impl Send for AreaMode
impl Sync for AreaMode
impl Unpin for AreaMode
impl UnsafeUnpin for AreaMode
impl UnwindSafe for AreaMode
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