pub struct ActiveDevice {
pub offset: u64,
pub iv_offset: u64,
pub size: u64,
pub flags: CryptActivate,
}Expand description
Record containing data on the given active device
Fields§
§offset: u64Device offset
iv_offset: u64Initialization vector offset
size: u64Size of the device
flags: CryptActivateFlags with activation options
Trait Implementations§
Source§impl<'a> TryFrom<&'a crypt_active_device> for ActiveDevice
impl<'a> TryFrom<&'a crypt_active_device> for ActiveDevice
Source§type Error = LibcryptErr
type Error = LibcryptErr
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ActiveDevice
impl RefUnwindSafe for ActiveDevice
impl Send for ActiveDevice
impl Sync for ActiveDevice
impl Unpin for ActiveDevice
impl UnwindSafe for ActiveDevice
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more