pub struct CodecSpec {
pub tag: CodecTag,
pub key_material: KeyMaterialKind,
pub alg: &'static str,
pub codec: &'static [u8],
pub key_length: KeyLength,
}Expand description
Static metadata for one multicodec entry.
Fields§
§tag: CodecTagMulticodec table tag.
key_material: KeyMaterialKindKey-material class for key codecs.
alg: &'static strHuman-readable algorithm name
codec: &'static [u8]Multicodec varint prefix bytes
key_length: KeyLengthExpected raw public key length AFTER prefix
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodecSpec
impl RefUnwindSafe for CodecSpec
impl Send for CodecSpec
impl Sync for CodecSpec
impl Unpin for CodecSpec
impl UnsafeUnpin for CodecSpec
impl UnwindSafe for CodecSpec
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