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

Trait UTxBuffer

Source
pub trait UTxBuffer {
    // Required methods
    fn metadata(&self) -> &UFrameMetadata;
    fn payload(&self) -> &[u8] ;
    fn payload_mut(&mut self) -> &mut [u8] ;
}
Expand description

Role: transmit storage a zero-copy transport lends; write the payload in place, then commit — see the trait map.

Mutable transmit storage reserved from a zero-copy transport.

Required Methods§

Source

fn metadata(&self) -> &UFrameMetadata

Returns the immutable frame metadata associated with this transmit loan.

Source

fn payload(&self) -> &[u8]

Returns the current payload bytes in the transmit loan.

Source

fn payload_mut(&mut self) -> &mut [u8]

Returns mutable payload storage for direct serialization into the loan.

Implementors§