Enum VolumeKind
#[non_exhaustive]pub enum VolumeKind {
Dynamic,
Static,
}Expand description
Type of a UBI volume.
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.
Dynamic
Volume whose data size equals its reserved size.
Static
Volume that holds a fixed amount of CRC-protected data.
Implementations§
§impl VolumeKind
impl VolumeKind
fn from_attribute(value: &str) -> Option<Self>
Available on crate feature
linux and (Android or Linux) only.§impl VolumeKind
impl VolumeKind
pub(crate) const fn from_media(value: u8) -> Option<Self>
pub(crate) const fn from_media(value: u8) -> Option<Self>
Converts the volume type of a VID header or volume table record.
Trait Implementations§
§impl Clone for VolumeKind
impl Clone for VolumeKind
§fn clone(&self) -> VolumeKind
fn clone(&self) -> VolumeKind
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 VolumeKind
§impl Debug for VolumeKind
impl Debug for VolumeKind
impl Eq for VolumeKind
§impl PartialEq for VolumeKind
impl PartialEq for VolumeKind
impl StructuralPartialEq for VolumeKind
Auto Trait Implementations§
impl Freeze for VolumeKind
impl RefUnwindSafe for VolumeKind
impl Send for VolumeKind
impl Sync for VolumeKind
impl Unpin for VolumeKind
impl UnsafeUnpin for VolumeKind
impl UnwindSafe for VolumeKind
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