pub trait Pack:
Default
+ Message
+ Sized {
const COLLECTION: Collection;
// Required methods
fn set_id(&mut self, id: Vec<u8>);
fn id(&self) -> &[u8] ⓘ;
// Provided method
fn pack(&self) -> Vec<u8> ⓘ { ... }
}
Required Associated Constants§
const COLLECTION: Collection
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.