Function zvariant::to_bytes_fds[][src]

pub fn to_bytes_fds<B, T: ?Sized>(
    ctxt: EncodingContext<B>,
    value: &T
) -> Result<(Vec<u8>, Vec<RawFd>)> where
    B: ByteOrder,
    T: Serialize + Type

Serialize T that (potentially) contains FDs, as a byte vector.

The returned file descriptor needs to be transferred via an out-of-band platform specific mechanism.