pub enum NoncerCode {
Empty,
Salt128,
Salt256,
Blake3_256,
Blake2b_256,
Blake2s_256,
SHA3_256,
SHA2_256,
Blake3_512,
Blake2b_512,
SHA3_512,
SHA2_512,
}Available on crate feature
core only.Expand description
CESR codes for nonce/randomness primitives.
Combines digest codes, salt codes, and an empty-value code for representing absent nonces.
Variants§
Empty
Empty value for absent nonces.
Salt128
Salt/nonce, 128 bits.
Salt256
Salt/nonce, 256 bits.
Blake3_256
BLAKE3, 256-bit.
Blake2b_256
BLAKE2b, 256-bit.
Blake2s_256
BLAKE2s, 256-bit.
SHA3_256
SHA-3, 256-bit.
SHA2_256
SHA-2, 256-bit.
Blake3_512
BLAKE3, 512-bit.
Blake2b_512
BLAKE2b, 512-bit.
SHA3_512
SHA-3, 512-bit.
SHA2_512
SHA-2, 512-bit.
Trait Implementations§
Source§impl CesrCode for NoncerCode
impl CesrCode for NoncerCode
Source§fn to_matter_code(&self) -> MatterCode
fn to_matter_code(&self) -> MatterCode
Converts this typed code to the untyped
MatterCode.Source§fn as_str(&self) -> &'static str
fn as_str(&self) -> &'static str
Returns the canonical Base64 string representation of this code.
Source§fn get_sizage(&self) -> Sizage
fn get_sizage(&self) -> Sizage
Returns the
Sizage descriptor for this code.Source§fn raw_size(&self) -> Result<usize, ValidationError>
fn raw_size(&self) -> Result<usize, ValidationError>
Returns the expected raw byte size for this code. Read more
Source§fn placeholder(&self) -> Result<String, ValidationError>
fn placeholder(&self) -> Result<String, ValidationError>
Available on crate feature
alloc only.Returns a placeholder qb64 string of this code’s full character width,
filled with
DUMMY_CHAR. Read moreSource§impl Clone for NoncerCode
impl Clone for NoncerCode
Source§fn clone(&self) -> NoncerCode
fn clone(&self) -> NoncerCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoncerCode
Source§impl Debug for NoncerCode
impl Debug for NoncerCode
impl Eq for NoncerCode
Source§impl From<NoncerCode> for MatterCode
impl From<NoncerCode> for MatterCode
Source§fn from(code: NoncerCode) -> Self
fn from(code: NoncerCode) -> Self
Converts to this type from the input type.
Source§impl Hash for NoncerCode
impl Hash for NoncerCode
Source§impl PartialEq for NoncerCode
impl PartialEq for NoncerCode
impl StructuralPartialEq for NoncerCode
Source§impl TryFrom<MatterCode> for NoncerCode
impl TryFrom<MatterCode> for NoncerCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for NoncerCode
impl RefUnwindSafe for NoncerCode
impl Send for NoncerCode
impl Sync for NoncerCode
impl Unpin for NoncerCode
impl UnsafeUnpin for NoncerCode
impl UnwindSafe for NoncerCode
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