Trait UnpackableAdStructType

Source
pub trait UnpackableAdStructType: AdStructureType {
    // Required method
    fn unpack_from(ad_type: AdType, buf: &[u8]) -> Result<Self, PackError>
       where Self: Sized;
}

Required Methods§

Source

fn unpack_from(ad_type: AdType, buf: &[u8]) -> Result<Self, PackError>
where Self: Sized,

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§