Function zvariant::from_slice_for_dynamic_signature

source ยท
pub fn from_slice_for_dynamic_signature<'d, B, T>(
    bytes: &'d [u8],
    ctxt: EncodingContext<B>,
    signature: &Signature<'d>,
) -> Result<T>
where B: ByteOrder, T: DynamicDeserialize<'d>,
Expand description

Deserialize T from a given slice of bytes containing file descriptor indices, with the given signature.

Please note that actual file descriptors are not part of the encoding and need to be transferred via an out-of-band platform specific mechanism. The encoding only contain the indices of the file descriptors and hence the reason, caller must pass a slice of file descriptors.