pub struct CryptInit;
Expand description
Initialization handle for devices
Implementations§
Source§impl CryptInit
impl CryptInit
Sourcepub fn init(device_path: &Path) -> Result<CryptDevice, LibcryptErr>
pub fn init(device_path: &Path) -> Result<CryptDevice, LibcryptErr>
Initialize by device path
Sourcepub fn init_with_data_device(
device_paths: Either<&Path, (&Path, &Path)>,
) -> Result<CryptDevice, LibcryptErr>
pub fn init_with_data_device( device_paths: Either<&Path, (&Path, &Path)>, ) -> Result<CryptDevice, LibcryptErr>
Initialize by device path or a header path and a data device path
Sourcepub fn init_by_name_and_header(
name: &str,
header_device_path: Option<&Path>,
) -> Result<CryptDevice, LibcryptErr>
pub fn init_by_name_and_header( name: &str, header_device_path: Option<&Path>, ) -> Result<CryptDevice, LibcryptErr>
Initialize by name and header device path
Auto Trait Implementations§
impl Freeze for CryptInit
impl RefUnwindSafe for CryptInit
impl Send for CryptInit
impl Sync for CryptInit
impl Unpin for CryptInit
impl UnwindSafe for CryptInit
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