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: KeyLength,
}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: KeyLengthExpected raw public key length after the prefix.
Trait Implementations§
Source§impl Clone for CodecLookupResult
impl Clone for CodecLookupResult
Auto 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