Trait netlink_packet_route::traits::Parseable
source · pub trait Parseable<T>: Sizedwhere
T: ?Sized,{
// Required method
fn parse(buf: &T) -> Result<Self, DecodeError>;
}
Expand description
A Parseable
type can be used to deserialize data from the type T
for
which it is implemented.
Required Methods§
sourcefn parse(buf: &T) -> Result<Self, DecodeError>
fn parse(buf: &T) -> Result<Self, DecodeError>
Deserialize the current type.
Object Safety§
This trait is not object safe.