Struct cryptoki::types::Flags [−][src]
Collection of boolean flags
Implementations
impl Flags
[src]
pub fn new() -> Self
[src]
Create a new instance with all flags set to false
pub fn set_token_present(&mut self, b: bool) -> &mut Self
[src]
Set the TOKEN_PRESENT flag
pub fn set_removable_device(&mut self, b: bool) -> &mut Self
[src]
Set the REMOVABLE_DEVICE flag
pub fn set_hw_slot(&mut self, b: bool) -> &mut Self
[src]
Set the HW_SLOT flag
pub fn set_array_attribute(&mut self, b: bool) -> &mut Self
[src]
Set the ARRAY_ATTRIBUTE flag
pub fn set_rng(&mut self, b: bool) -> &mut Self
[src]
Set the RNG flag
pub fn set_write_protected(&mut self, b: bool) -> &mut Self
[src]
Set the WRITE_PROTECTED flag
pub fn set_login_required(&mut self, b: bool) -> &mut Self
[src]
Set the LOGIN_REQUIRED flag
pub fn set_user_pin_initialized(&mut self, b: bool) -> &mut Self
[src]
Set the USER_PIN_INITIALIZED flag
pub fn set_restore_key_not_needed(&mut self, b: bool) -> &mut Self
[src]
Set the RESTORE_KEY_NOT_NEEDED flag
pub fn set_clock_on_token(&mut self, b: bool) -> &mut Self
[src]
Set the CLOCK_ON_TOKEN flag
pub fn set_protected_authentication_path(&mut self, b: bool) -> &mut Self
[src]
Set the PROTECTED_AUTHENTICATION flag
pub fn set_dual_crypto_operations(&mut self, b: bool) -> &mut Self
[src]
Set the DUAL_CRYPTO_OPERATIONS flag
pub fn set_token_initialized(&mut self, b: bool) -> &mut Self
[src]
Set the TOKEN_INITIALIZED flag
pub fn set_secondary_authentication(&mut self, b: bool) -> &mut Self
[src]
Set the SECONDARY_AUTHENTICATION flag
pub fn set_user_pin_count_low(&mut self, b: bool) -> &mut Self
[src]
Set the USER_PIN_COUNT_LOW flag
pub fn set_user_pin_final_try(&mut self, b: bool) -> &mut Self
[src]
Set the USER_PIN_FINAL_TRY flag
pub fn set_user_pin_locked(&mut self, b: bool) -> &mut Self
[src]
Set the USER_PIN_LOCKED flag
pub fn set_user_pin_to_be_changed(&mut self, b: bool) -> &mut Self
[src]
Set the USER_PIN_TO_BE_CHANGED flag
pub fn set_so_pin_count_low(&mut self, b: bool) -> &mut Self
[src]
Set the SO_PIN_COUNT_LOW flag
pub fn set_so_pin_final_try(&mut self, b: bool) -> &mut Self
[src]
Set the SO_PIN_FINAL_TRY flag
pub fn set_so_pin_locked(&mut self, b: bool) -> &mut Self
[src]
Set the SO_PIN_LOCKED flag
pub fn set_so_pin_to_be_changed(&mut self, b: bool) -> &mut Self
[src]
Set the SO_PIN_TO_BE_CHANGED flag
pub fn set_rw_session(&mut self, b: bool) -> &mut Self
[src]
Set the RW_SESSION flag
pub fn set_serial_session(&mut self, b: bool) -> &mut Self
[src]
Set the SERIAL_SESSION flag
pub fn set_next_otp(&mut self, b: bool) -> &mut Self
[src]
Set the NEXT_OTP flag
pub fn set_exclude_time(&mut self, b: bool) -> &mut Self
[src]
Set the EXCLUDE_TIME flag
pub fn set_exclude_counter(&mut self, b: bool) -> &mut Self
[src]
Set the EXCLUDE_COUNTER flag
pub fn set_exclude_challenge(&mut self, b: bool) -> &mut Self
[src]
Set the EXCLUDE_CHALLENGE flag
pub fn set_exclude_pin(&mut self, b: bool) -> &mut Self
[src]
Set the EXCLUDE_PIN flag
pub fn set_user_friendly_otp(&mut self, b: bool) -> &mut Self
[src]
Set the USER_FRIENDLY_OTP flag
pub fn set_hw(&mut self, b: bool) -> &mut Self
[src]
Set the HW flag
pub fn set_encrypt(&mut self, b: bool) -> &mut Self
[src]
Set the ENCRYPT flag
pub fn set_decrypt(&mut self, b: bool) -> &mut Self
[src]
Set the DECRYPT flag
pub fn set_digest(&mut self, b: bool) -> &mut Self
[src]
Set the DIGEST flag
pub fn set_sign(&mut self, b: bool) -> &mut Self
[src]
Set the SIGN flag
pub fn set_sign_recover(&mut self, b: bool) -> &mut Self
[src]
Set the SIGN_RECOVER flag
pub fn set_verify(&mut self, b: bool) -> &mut Self
[src]
Set the VERIFY flag
pub fn set_verify_recover(&mut self, b: bool) -> &mut Self
[src]
Set the VERIFY_RECOVER flag
pub fn set_generate(&mut self, b: bool) -> &mut Self
[src]
Set the GENERATE flag
pub fn set_generate_key_pair(&mut self, b: bool) -> &mut Self
[src]
Set the GENERATE_KEY_PAIR flag
pub fn set_wrap(&mut self, b: bool) -> &mut Self
[src]
Set the WRAP flag
pub fn set_unwrap(&mut self, b: bool) -> &mut Self
[src]
Set the UNWRAP flag
pub fn set_derive(&mut self, b: bool) -> &mut Self
[src]
Set the DERIVE flag
pub fn set_extension(&mut self, b: bool) -> &mut Self
[src]
Set the EXTENSION flag
pub fn set_ec_f_p(&mut self, b: bool) -> &mut Self
[src]
Set the EC_F_P flag
pub fn set_ec_namedcurve(&mut self, b: bool) -> &mut Self
[src]
Set the EC_NAMEDCURVE flag
pub fn set_ec_uncompress(&mut self, b: bool) -> &mut Self
[src]
Set the EC_UNCOMPRESS flag
pub fn set_ec_compress(&mut self, b: bool) -> &mut Self
[src]
Set the EC_COMPRESS flag
pub fn set_dont_block(&mut self, b: bool) -> &mut Self
[src]
Set the DONT_BLOCK flag
pub fn set_library_cant_create_os_threads(&mut self, b: bool) -> &mut Self
[src]
Set the LIBRARY_CANT_CREATE_OS_THREADS flag
pub fn set_os_locking_ok(&mut self, b: bool) -> &mut Self
[src]
Set the OS_LOCKING_OK flag
Trait Implementations
impl Clone for Flags
[src]
impl Copy for Flags
[src]
impl Debug for Flags
[src]
impl Default for Flags
[src]
Auto Trait Implementations
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,