#[non_exhaustive]pub enum Unpreserved {
ReadOnly,
Encrypted,
Owner,
Group,
Mode,
Acl,
}Expand description
What a replacement file would not keep of the file it replaces, found before anything was written. See “What a replacement keeps” in the module docs for what is, and is not, examined on each platform.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadOnly
The file is read-only (Windows attribute).
Encrypted
The file is EFS-encrypted (Windows attribute); the replacement would be plaintext.
Owner
The replacement would have a different owner (Unix).
Group
The replacement would have a different group (Unix).
Mode
The replacement would have different permission bits (Unix).
Acl
The file is owner-only and has, or may have, an extended ACL the replacement would not carry, or the replacement itself got one (macOS).
Trait Implementations§
Source§impl Clone for Unpreserved
impl Clone for Unpreserved
impl Copy for Unpreserved
Source§impl Debug for Unpreserved
impl Debug for Unpreserved
Source§impl Display for Unpreserved
impl Display for Unpreserved
impl Eq for Unpreserved
Source§impl Error for Unpreserved
impl Error for Unpreserved
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Unpreserved> for CommitError
impl From<Unpreserved> for CommitError
Source§fn from(source: Unpreserved) -> Self
fn from(source: Unpreserved) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Unpreserved
impl PartialEq for Unpreserved
impl StructuralPartialEq for Unpreserved
Auto Trait Implementations§
impl Freeze for Unpreserved
impl RefUnwindSafe for Unpreserved
impl Send for Unpreserved
impl Sync for Unpreserved
impl Unpin for Unpreserved
impl UnsafeUnpin for Unpreserved
impl UnwindSafe for Unpreserved
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.