Function with_tls_encoded
pub fn with_tls_encoded<T, D, Out>(
val: impl Encode<T, D>,
f: impl FnOnce(&mut Vec<u8>, &mut Vec<<<D as ResourceDialect>::ProxyChannel as ProxyChannelFor<D>>::HandleDisposition>) -> Result<Out, Error>,
) -> Result<Out, Error>where
T: TypeMarker,
D: ResourceDialect,
Expand description
Encodes the provided type into the thread-local encoding buffers.
This function may not be called recursively.