Skip to main content

ChannelMetadata

Trait ChannelMetadata 

Source
pub trait ChannelMetadata: Serialize + DeserializeOwned {
    // Required method
    fn used_size(&self) -> usize;
}
Expand description

User-defined typed metadata contract for channel payloads.

Required Methods§

Source

fn used_size(&self) -> usize

Returns the number of payload bytes that are valid for this message.

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.

Implementors§