pub struct KeyFlags(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl KeyFlags
impl KeyFlags
pub fn certify(&self) -> bool
pub fn sign(&self) -> bool
pub fn encrypt_comms(&self) -> bool
pub fn encrypt_storage(&self) -> bool
pub fn authentication(&self) -> bool
pub fn group(&self) -> bool
pub fn set_certify(&mut self, value: bool)
pub fn set_sign(&mut self, value: bool)
pub fn set_encrypt_comms(&mut self, value: bool)
pub fn set_encrypt_storage(&mut self, value: bool)
pub fn set_authentication(&mut self, value: bool)
pub fn set_group(&mut self, value: bool)
Trait Implementations§
source§impl<T> BitRangeMut<T> for KeyFlagswhere
u8: BitRangeMut<T>,
impl<T> BitRangeMut<T> for KeyFlagswhere u8: BitRangeMut<T>,
source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.