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.
source§impl PartialEq for KeyFlags
impl PartialEq for KeyFlags
impl Copy for KeyFlags
impl Eq for KeyFlags
impl StructuralPartialEq for KeyFlags
Auto Trait Implementations§
impl RefUnwindSafe for KeyFlags
impl Send for KeyFlags
impl Sync for KeyFlags
impl Unpin for KeyFlags
impl UnwindSafe for KeyFlags
Blanket Implementations§
source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
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