Skip to main content

delegate_codec

Macro delegate_codec 

Source
macro_rules! delegate_codec {
    ($wrapper:ident<$($lt:lifetime,)? $backend:ident $(, $rest:ident)* $(,)?>, $field:ident) => { ... };
}
Expand description

This macro is used to implement the WireFormatBackend trait for a wrapper type that contains a backend field. It delegates the associated types and methods to the inner backend field, allowing the wrapper type to behave like a WireFormatBackend without having to manually implement each item.