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§
Sourcefn metadata(&self) -> &UFrameMetadata
fn metadata(&self) -> &UFrameMetadata
Returns the immutable frame metadata associated with this transmit loan.
Sourcefn payload_mut(&mut self) -> &mut [u8] ⓘ
fn payload_mut(&mut self) -> &mut [u8] ⓘ
Returns mutable payload storage for direct serialization into the loan.