pub struct PartitionMatcher {
pub type_guids: Option<Vec<[u8; 16]>>,
pub instance_guids: Option<Vec<[u8; 16]>>,
pub labels: Option<Vec<String>>,
pub detected_disk_formats: Option<Vec<DiskFormat>>,
pub parent_device: Option<String>,
pub ignore_prefix: Option<String>,
pub ignore_if_path_contains: Option<String>,
}
Expand description
Set of parameters to use for identifying the correct partition to open via
[open_partition
]
If multiple matchers are specified, the first partition that satisfies any set
of matchers will be used. At least one of [type_guids
], [instance_guids
], [labels
],
[detected_formats
], or [parent_device
] must be specified.
Fields§
§type_guids: Option<Vec<[u8; 16]>>
Set of type GUIDs the partition must match. Ignored if empty.
instance_guids: Option<Vec<[u8; 16]>>
Set of instance GUIDs the partition must match. Ignored if empty.
labels: Option<Vec<String>>
§detected_disk_formats: Option<Vec<DiskFormat>>
§parent_device: Option<String>
partition must be a child of this device.
ignore_prefix: Option<String>
The topological path must not start with this prefix.
ignore_if_path_contains: Option<String>
The topological path must not contain this substring.
Trait Implementations§
Source§impl Clone for PartitionMatcher
impl Clone for PartitionMatcher
Source§fn clone(&self) -> PartitionMatcher
fn clone(&self) -> PartitionMatcher
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PartitionMatcher
impl Default for PartitionMatcher
Source§fn default() -> PartitionMatcher
fn default() -> PartitionMatcher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PartitionMatcher
impl RefUnwindSafe for PartitionMatcher
impl Send for PartitionMatcher
impl Sync for PartitionMatcher
impl Unpin for PartitionMatcher
impl UnwindSafe for PartitionMatcher
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)