pub struct DmVerityTargetOptionalParams {
pub ignore_zero_blocks: bool,
pub restart_on_corruption: bool,
}Expand description
Optional construction parameters for a dm-verity target.
These correspond to the optional target parameters in Linux dm-verity. They default to false if all features are disabled.
See https://docs.kernel.org/admin-guide/device-mapper/verity.html
Fields§
§ignore_zero_blocks: boolIf set, blocks containing only zeroes will bypass verification and always return zeroes instead.
restart_on_corruption: boolIf set, the system will restart if data corruption is detected.
Trait Implementations§
Source§impl Clone for DmVerityTargetOptionalParams
impl Clone for DmVerityTargetOptionalParams
Source§fn clone(&self) -> DmVerityTargetOptionalParams
fn clone(&self) -> DmVerityTargetOptionalParams
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 moreSource§impl Debug for DmVerityTargetOptionalParams
impl Debug for DmVerityTargetOptionalParams
Source§impl Default for DmVerityTargetOptionalParams
impl Default for DmVerityTargetOptionalParams
Source§fn default() -> DmVerityTargetOptionalParams
fn default() -> DmVerityTargetOptionalParams
Returns the “default value” for a type. Read more
Source§impl PartialEq for DmVerityTargetOptionalParams
impl PartialEq for DmVerityTargetOptionalParams
Source§fn eq(&self, other: &DmVerityTargetOptionalParams) -> bool
fn eq(&self, other: &DmVerityTargetOptionalParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DmVerityTargetOptionalParams
impl StructuralPartialEq for DmVerityTargetOptionalParams
Auto Trait Implementations§
impl Freeze for DmVerityTargetOptionalParams
impl RefUnwindSafe for DmVerityTargetOptionalParams
impl Send for DmVerityTargetOptionalParams
impl Sync for DmVerityTargetOptionalParams
impl Unpin for DmVerityTargetOptionalParams
impl UnsafeUnpin for DmVerityTargetOptionalParams
impl UnwindSafe for DmVerityTargetOptionalParams
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