#[non_exhaustive]pub enum PartitionStatus {
OpenIncomplete,
ClosedIncomplete,
OpenComplete,
ClosedComplete,
}Expand description
The Open/Closed × Complete/Incomplete status of a Partition (§6.2.3, Table 4 byte 15).
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.
OpenIncomplete
0x01 — Open and Incomplete.
ClosedIncomplete
0x02 — Closed and Incomplete.
OpenComplete
0x03 — Open and Complete.
ClosedComplete
0x04 — Closed and Complete.
Implementations§
Source§impl PartitionStatus
impl PartitionStatus
Sourcepub fn is_open(&self) -> bool
pub fn is_open(&self) -> bool
True for Self::OpenIncomplete/Self::OpenComplete.
Trait Implementations§
Source§impl Clone for PartitionStatus
impl Clone for PartitionStatus
Source§fn clone(&self) -> PartitionStatus
fn clone(&self) -> PartitionStatus
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 PartitionStatus
Source§impl Debug for PartitionStatus
impl Debug for PartitionStatus
Source§impl<'de> Deserialize<'de> for PartitionStatus
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PartitionStatus
Available on crate feature
serde only.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
Source§impl Display for PartitionStatus
impl Display for PartitionStatus
impl Eq for PartitionStatus
Source§impl Hash for PartitionStatus
impl Hash for PartitionStatus
Source§impl PartialEq for PartitionStatus
impl PartialEq for PartitionStatus
Source§impl Serialize for PartitionStatus
Available on crate feature serde only.
impl Serialize for PartitionStatus
Available on crate feature
serde only.impl StructuralPartialEq for PartitionStatus
Auto Trait Implementations§
impl Freeze for PartitionStatus
impl RefUnwindSafe for PartitionStatus
impl Send for PartitionStatus
impl Sync for PartitionStatus
impl Unpin for PartitionStatus
impl UnsafeUnpin for PartitionStatus
impl UnwindSafe for PartitionStatus
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