Skip to main content

BoundedWireBytes

Trait BoundedWireBytes 

Source
pub trait BoundedWireBytes: Sized {
    // Required method
    fn from_wire_bytes(bytes: &[u8]) -> Result<Self>;
}
Expand description

Domain types over wire Data enforce their own byte budget at decode, before any owned copy is materialized by generated readers.

Required Methods§

Source

fn from_wire_bytes(bytes: &[u8]) -> Result<Self>

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§