Preview of the proposed up-rust native-frame-model branch (up-rust b6b99c6d, up-spec f0e9b17) — not released documentation. branch · write-up

Trait UZeroCopyUninitTransportCore

Source
pub trait UZeroCopyUninitTransportCore: UZeroCopyTransportCore {
    type UninitTx: UUninitTxBuffer<Initialized = Self::Tx> + Send;

    // Required method
    fn loan_prepared_uninit_tx<'life0, 'async_trait>(
        &'life0 self,
        spec: PreparedTxLoanSpec,
    ) -> Pin<Box<dyn Future<Output = Result<Self::UninitTx, UStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Optional encoded-core capability for uninitialized transmit loans.

This one additional operation enables the adapter’s checked two-phase stable initialization paths. The core returns storage matching the prepared layout; the generic layer owns initialization witnesses and commit eligibility.

Required Associated Types§

Source

type UninitTx: UUninitTxBuffer<Initialized = Self::Tx> + Send

Transport-specific uninitialized transmit loan type.

Required Methods§

Source

fn loan_prepared_uninit_tx<'life0, 'async_trait>( &'life0 self, spec: PreparedTxLoanSpec, ) -> Pin<Box<dyn Future<Output = Result<Self::UninitTx, UStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reserves uninitialized storage for a request with already encoded metadata bytes.

Implementors§