[−][src]Struct cryptsetup_rs::api::CryptDeviceHandle
An opaque handle on an initialized crypt device
Trait Implementations
impl<P: Debug> CryptDevice for CryptDeviceHandle<P>[src]
fn path(&self) -> &Path[src]
fn cipher(&self) -> &str[src]
fn cipher_mode(&self) -> &str[src]
fn device_name(&self) -> &str[src]
fn rng_type(&self) -> crypt_rng_type[src]
fn set_rng_type(&mut self, rng_type: crypt_rng_type)[src]
fn set_iteration_time(&mut self, iteration_time_ms: u64)[src]
fn volume_key_size(&self) -> u8[src]
impl CryptDeviceType for CryptDeviceHandle<Luks1Params>[src]
fn device_type(&self) -> crypt_device_type[src]
impl Luks1CryptDevice for CryptDeviceHandle<Luks1Params>[src]
fn activate(&mut self, name: &str, key: &[u8]) -> Result<Keyslot>[src]
fn add_keyslot(
&mut self,
key: &[u8],
maybe_prev_key: Option<&[u8]>,
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>[src]
&mut self,
key: &[u8],
maybe_prev_key: Option<&[u8]>,
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
fn update_keyslot(
&mut self,
key: &[u8],
prev_key: &[u8],
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>[src]
&mut self,
key: &[u8],
prev_key: &[u8],
maybe_keyslot: Option<Keyslot>
) -> Result<Keyslot>
fn destroy_keyslot(&mut self, slot: Keyslot) -> Result<()>[src]
fn dump(&self)[src]
fn hash_spec(&self) -> &str[src]
fn keyslot_status(&self, keyslot: Keyslot) -> crypt_keyslot_info[src]
fn mk_bits(&self) -> u32[src]
fn mk_digest(&self) -> &[u8; 20][src]
fn mk_iterations(&self) -> u32[src]
fn mk_salt(&self) -> &[u8; 32][src]
fn payload_offset(&self) -> u32[src]
fn uuid(&self) -> Uuid[src]
impl<P: Debug> Drop for CryptDeviceHandle<P>[src]
impl<P: PartialEq + Debug> PartialEq<CryptDeviceHandle<P>> for CryptDeviceHandle<P>[src]
fn eq(&self, other: &CryptDeviceHandle<P>) -> bool[src]
fn ne(&self, other: &CryptDeviceHandle<P>) -> bool[src]
impl<P: Debug> Debug for CryptDeviceHandle<P>[src]
Auto Trait Implementations
impl<P> !Send for CryptDeviceHandle<P>
impl<P> !Sync for CryptDeviceHandle<P>
impl<P> Unpin for CryptDeviceHandle<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for CryptDeviceHandle<P> where
P: UnwindSafe,
P: UnwindSafe,
impl<P> RefUnwindSafe for CryptDeviceHandle<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,