pub struct AttributeFlags(pub u32);Expand description
VSS store attribute flags (VSS_VOLUME_SNAPSHOT_ATTRIBUTES).
Tuple Fields§
§0: u32Implementations§
Source§impl AttributeFlags
impl AttributeFlags
Sourcepub const PERSISTENT: u32 = 0x0000_0001
pub const PERSISTENT: u32 = 0x0000_0001
Persistent — survives reboot.
Sourcepub const NO_AUTO_RECOVERY: u32 = 0x0000_0002
pub const NO_AUTO_RECOVERY: u32 = 0x0000_0002
No auto-recovery.
Sourcepub const CLIENT_ACCESSIBLE: u32 = 0x0000_0004
pub const CLIENT_ACCESSIBLE: u32 = 0x0000_0004
Client-accessible (a user-facing “Previous Versions” copy).
Sourcepub const NO_AUTO_RELEASE: u32 = 0x0000_0008
pub const NO_AUTO_RELEASE: u32 = 0x0000_0008
No auto-release.
Sourcepub const NO_WRITERS: u32 = 0x0000_0010
pub const NO_WRITERS: u32 = 0x0000_0010
No writers.
Sourcepub const TRANSPORTABLE: u32 = 0x0000_0020
pub const TRANSPORTABLE: u32 = 0x0000_0020
Transportable.
Sourcepub const NOT_SURFACED: u32 = 0x0000_0040
pub const NOT_SURFACED: u32 = 0x0000_0040
Not surfaced.
Sourcepub const NOT_TRANSACTED: u32 = 0x0000_0080
pub const NOT_TRANSACTED: u32 = 0x0000_0080
Not transacted.
Sourcepub const DIFFERENTIAL: u32 = 0x0002_0000
pub const DIFFERENTIAL: u32 = 0x0002_0000
Differential — the copy-on-write mechanism.
Sourcepub fn is_persistent(self) -> bool
pub fn is_persistent(self) -> bool
Whether the persistent flag is set (survives reboot).
Sourcepub fn is_client_accessible(self) -> bool
pub fn is_client_accessible(self) -> bool
Whether the client-accessible flag is set.
Sourcepub fn is_differential(self) -> bool
pub fn is_differential(self) -> bool
Whether the differential (copy-on-write) flag is set.
Trait Implementations§
Source§impl Clone for AttributeFlags
impl Clone for AttributeFlags
Source§fn clone(&self) -> AttributeFlags
fn clone(&self) -> AttributeFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AttributeFlags
Source§impl Debug for AttributeFlags
impl Debug for AttributeFlags
impl Eq for AttributeFlags
Source§impl PartialEq for AttributeFlags
impl PartialEq for AttributeFlags
Source§fn eq(&self, other: &AttributeFlags) -> bool
fn eq(&self, other: &AttributeFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttributeFlags
Auto Trait Implementations§
impl Freeze for AttributeFlags
impl RefUnwindSafe for AttributeFlags
impl Send for AttributeFlags
impl Sync for AttributeFlags
impl Unpin for AttributeFlags
impl UnsafeUnpin for AttributeFlags
impl UnwindSafe for AttributeFlags
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