Enum yubihsm::AuditOption [−][src]
#[repr(u8)]pub enum AuditOption { Off, On, Fix, }
Auditing policy options
Variants
Off
Audit logging disabled
On
Audit logging enabled
Fix
Audit logging permanently enabled; not possible to turn off
Methods
impl AuditOption
[src]
impl AuditOption
pub fn from_u8(byte: u8) -> Result<Self, Error>
[src]
pub fn from_u8(byte: u8) -> Result<Self, Error>
Convert an unsigned byte into a ObjectType (if valid)
pub fn to_u8(self) -> u8
[src]
pub fn to_u8(self) -> u8
Serialize this object type as a byte
Trait Implementations
impl Copy for AuditOption
[src]
impl Copy for AuditOption
impl Clone for AuditOption
[src]
impl Clone for AuditOption
fn clone(&self) -> AuditOption
[src]
fn clone(&self) -> AuditOption
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for AuditOption
[src]
impl Debug for AuditOption
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for AuditOption
[src]
impl Eq for AuditOption
impl PartialEq for AuditOption
[src]
impl PartialEq for AuditOption
fn eq(&self, other: &AuditOption) -> bool
[src]
fn eq(&self, other: &AuditOption) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Hash for AuditOption
[src]
impl Hash for AuditOption
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for AuditOption
[src]
impl Serialize for AuditOption
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for AuditOption
[src]
impl<'de> Deserialize<'de> for AuditOption
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<AuditOption, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<AuditOption, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for AuditOption
impl Send for AuditOption
impl Sync for AuditOption
impl Sync for AuditOption