Struct libcryptsetup_rs::ActiveDevice
source · [−]pub struct ActiveDevice {
pub offset: u64,
pub iv_offset: u64,
pub size: u64,
pub flags: CryptActivateFlags,
}
Expand description
Record containing data on the given active device
Fields
offset: u64
Device offset
iv_offset: u64
Initialization vector offset
size: u64
Size of the device
flags: CryptActivateFlags
Flags with activation options
Trait Implementations
sourceimpl<'a> TryFrom<&'a crypt_active_device> for ActiveDevice
impl<'a> TryFrom<&'a crypt_active_device> for ActiveDevice
type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
sourcefn try_from(v: &'a crypt_active_device) -> Result<Self, Self::Error>
fn try_from(v: &'a crypt_active_device) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ActiveDevice
impl Send for ActiveDevice
impl Sync for ActiveDevice
impl Unpin for ActiveDevice
impl UnwindSafe for ActiveDevice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more