netlink_packet_utils::traits

Trait Parseable

Source
pub trait Parseable<T>
where Self: Sized, T: ?Sized,
{ type Error; // Required method fn parse(buf: &T) -> Result<Self, Self::Error>; }
Expand description

A Parseable type can be used to deserialize data from the type T for which it is implemented.

Required Associated Types§

Required Methods§

Source

fn parse(buf: &T) -> Result<Self, Self::Error>

Deserialize the current type.

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§