Trait netlink_packet::Parseable
source · pub trait Parseable<T> {
fn parse(&self) -> Result<T, DecodeError>;
}
Expand description
A Parseable
type can be used to deserialize data into the target type T
for which it is
implemented.
Required Methods§
sourcefn parse(&self) -> Result<T, DecodeError>
fn parse(&self) -> Result<T, DecodeError>
Deserialize the current type.