pub struct CryptDeviceOpenBuilder { /* private fields */ }Expand description
Struct containing state for the open() builder
Implementations§
Source§impl CryptDeviceOpenBuilder
impl CryptDeviceOpenBuilder
Sourcepub fn luks1(
self: CryptDeviceOpenBuilder,
) -> Result<CryptDeviceHandle<Luks1Params>>
pub fn luks1( self: CryptDeviceOpenBuilder, ) -> Result<CryptDeviceHandle<Luks1Params>>
Loads an existing LUKS1 crypt device
Sourcepub fn luks2(
self: CryptDeviceOpenBuilder,
) -> Result<CryptDeviceHandle<Luks2Params>>
pub fn luks2( self: CryptDeviceOpenBuilder, ) -> Result<CryptDeviceHandle<Luks2Params>>
Loads an existing LUKS2 crypt device
pub fn luks( self: CryptDeviceOpenBuilder, ) -> Result<Either<CryptDeviceHandle<Luks1Params>, CryptDeviceHandle<Luks2Params>>>
Auto Trait Implementations§
impl Freeze for CryptDeviceOpenBuilder
impl RefUnwindSafe for CryptDeviceOpenBuilder
impl !Send for CryptDeviceOpenBuilder
impl !Sync for CryptDeviceOpenBuilder
impl Unpin for CryptDeviceOpenBuilder
impl UnsafeUnpin for CryptDeviceOpenBuilder
impl UnwindSafe for CryptDeviceOpenBuilder
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