pub struct SecurityLevel(/* private fields */);
Expand description
Represents the security level for acceptance of a denomination specified by a [DenominationInfo].
Implementations§
Source§impl SecurityLevel
impl SecurityLevel
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SecurityLevel.
Sourcepub const fn create(c: u32) -> Self
pub const fn create(c: u32) -> Self
Creates a new SecurityLevel from the provided parameter.
Sourcepub const fn inner(&self) -> u32
pub const fn inner(&self) -> u32
Gets the inner representation of the SecurityLevel.
Sourcepub fn set_inner(&mut self, v: u32)
pub fn set_inner(&mut self, v: u32)
Sets the inner representation of the SecurityLevel.
Sourcepub fn into_inner(self) -> u32
pub fn into_inner(self) -> u32
Converts into the inner representation of the SecurityLevel.
Trait Implementations§
Source§impl Clone for SecurityLevel
impl Clone for SecurityLevel
Source§fn clone(&self) -> SecurityLevel
fn clone(&self) -> SecurityLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SecurityLevel
impl Debug for SecurityLevel
Source§impl Default for SecurityLevel
impl Default for SecurityLevel
Source§impl Display for SecurityLevel
impl Display for SecurityLevel
Source§impl From<&SecurityLevel> for XfsMember
impl From<&SecurityLevel> for XfsMember
Source§fn from(val: &SecurityLevel) -> Self
fn from(val: &SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<&SecurityLevel> for XfsValue
impl From<&SecurityLevel> for XfsValue
Source§fn from(val: &SecurityLevel) -> Self
fn from(val: &SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<&SecurityLevel> for i32
impl From<&SecurityLevel> for i32
Source§fn from(val: &SecurityLevel) -> Self
fn from(val: &SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<&SecurityLevel> for u32
impl From<&SecurityLevel> for u32
Source§fn from(val: &SecurityLevel) -> Self
fn from(val: &SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<&i32> for SecurityLevel
impl From<&i32> for SecurityLevel
Source§impl From<&u32> for SecurityLevel
impl From<&u32> for SecurityLevel
Source§impl From<SecurityLevel> for XfsMember
impl From<SecurityLevel> for XfsMember
Source§fn from(val: SecurityLevel) -> Self
fn from(val: SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<SecurityLevel> for XfsValue
impl From<SecurityLevel> for XfsValue
Source§fn from(val: SecurityLevel) -> Self
fn from(val: SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<SecurityLevel> for i32
impl From<SecurityLevel> for i32
Source§fn from(val: SecurityLevel) -> Self
fn from(val: SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<SecurityLevel> for u32
impl From<SecurityLevel> for u32
Source§fn from(val: SecurityLevel) -> Self
fn from(val: SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<i32> for SecurityLevel
impl From<i32> for SecurityLevel
Source§impl From<u32> for SecurityLevel
impl From<u32> for SecurityLevel
Source§impl PartialEq for SecurityLevel
impl PartialEq for SecurityLevel
Source§impl TryFrom<&XfsMember> for SecurityLevel
impl TryFrom<&XfsMember> for SecurityLevel
Source§impl TryFrom<&XfsValue> for SecurityLevel
impl TryFrom<&XfsValue> for SecurityLevel
Source§impl TryFrom<XfsMember> for SecurityLevel
impl TryFrom<XfsMember> for SecurityLevel
Source§impl TryFrom<XfsValue> for SecurityLevel
impl TryFrom<XfsValue> for SecurityLevel
impl Copy for SecurityLevel
impl Eq for SecurityLevel
impl StructuralPartialEq for SecurityLevel
Auto Trait Implementations§
impl Freeze for SecurityLevel
impl RefUnwindSafe for SecurityLevel
impl Send for SecurityLevel
impl Sync for SecurityLevel
impl Unpin for SecurityLevel
impl UnwindSafe for SecurityLevel
Blanket Implementations§
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