pub struct CodecLookupResult {
pub name: &'static str,
pub tag: CodecTag,
pub key_material: KeyMaterialKind,
pub alg: &'static str,
pub codec: &'static [u8],
pub key_length: usize,
}Expand description
Codec metadata resolved from a multicodec prefix.
Fields§
§name: &'static strCanonical multicodec name (e.g. ed25519-pub).
tag: CodecTagMulticodec table tag.
key_material: KeyMaterialKindKey-material class for key codecs.
alg: &'static strHuman-readable algorithm name (e.g. Ed25519).
codec: &'static [u8]The multicodec varint prefix bytes.
key_length: usizeExpected raw public key length after the prefix.
Trait Implementations§
Source§impl Clone for CodecLookupResult
impl Clone for CodecLookupResult
Source§fn clone(&self) -> CodecLookupResult
fn clone(&self) -> CodecLookupResult
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 moreAuto Trait Implementations§
impl Freeze for CodecLookupResult
impl RefUnwindSafe for CodecLookupResult
impl Send for CodecLookupResult
impl Sync for CodecLookupResult
impl Unpin for CodecLookupResult
impl UnsafeUnpin for CodecLookupResult
impl UnwindSafe for CodecLookupResult
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