send_producer_blob_fd

Function send_producer_blob_fd 

Source
pub async fn send_producer_blob_fd<S: Session>(
    session: &S,
    blob: &ProducerBlob,
) -> Result<(), Error>
Expand description

Send a producer blob with its FD via the session layer.

This combines sending the blob’s metadata (via control plane messages) with sending the underlying FD (via SCM_RIGHTS for Unix FD-backed blobs).

§Protocol

The caller should:

  1. Send a control message containing the BlobToken and SharedBlobDescriptor
  2. Call this function to send the FD out-of-band (for UnixFd descriptors)

§Arguments

  • session - The session to use for FD transfer
  • blob - The producer blob to send

§Returns

Returns Ok(()) on success.