Trait pcap_parser::ToVec
source · pub trait ToVec {
// Required method
fn to_vec_raw(&self) -> Result<Vec<u8>, GenError>;
// Provided methods
fn to_vec(&mut self) -> Result<Vec<u8>, GenError> { ... }
fn fix(&mut self) { ... }
}
Available on crate feature
serialize
only.Expand description
Common trait for all serialization functions