Trait RootLayerCodec
Source pub trait RootLayerCodec {
type Error: Error + From<AcnError>;
// Required method
fn decode(buf: &[u8]) -> Result<Self, Self::Error>
where Self: Sized;
// Provided methods
fn size(&self) -> usize { ... }
fn preamble_length(&self) -> usize { ... }
fn encode_preamble(&self, _buf: &mut [u8]) -> Result<usize, Self::Error> { ... }
fn pdu_block_length(&self) -> usize { ... }
fn encode_pdu_block(&self, _buf: &mut [u8]) -> Result<usize, Self::Error> { ... }
fn postamble_length(&self) -> usize { ... }
fn encode_postamble(&self, _buf: &mut [u8]) -> Result<usize, Self::Error> { ... }
fn encode(&self, buf: &mut [u8]) -> Result<usize, Self::Error> { ... }
}