Trait ilp::ilp::Serializable
source · pub trait Serializable<T> {
fn from_bytes(bytes: &[u8]) -> Result<T, ParseError>;
fn to_bytes(&self) -> Vec<u8> ⓘ;
}
pub trait Serializable<T> {
fn from_bytes(bytes: &[u8]) -> Result<T, ParseError>;
fn to_bytes(&self) -> Vec<u8> ⓘ;
}