Trait s2n_quic_core::xdp::bpf::Decoder
source · pub trait Decoder<'a>: Sized {
// Required methods
fn decode<T: DecoderValue<'a> + DecoderValueMut<'a>>(
self
) -> Result<(T, Self), DecoderError>;
fn decode_slice(self, len: usize) -> Result<(Self, Self), DecoderError>;
}Expand description
A generic interface over a decoder buffer
Required Methods§
fn decode<T: DecoderValue<'a> + DecoderValueMut<'a>>( self ) -> Result<(T, Self), DecoderError>
fn decode_slice(self, len: usize) -> Result<(Self, Self), DecoderError>
Object Safety§
This trait is not object safe.