Struct TxBuffer
pub struct TxBuffer {
pub id: u32,
pub data: Vec<BufferRegion>,
pub meta: BufferMetadata,
pub head_length: u16,
pub tail_length: u16,
}
Expand description
A transmit buffer containing a single frame.
Fields§
§id: u32
Unique buffer identifier.
data: Vec<BufferRegion>
Regions of VMO holding frame data.
meta: BufferMetadata
Metadata associated with this buffer.
head_length: u16
Length of header bytes in the data contained in this buffer.
Will always be either 0 or the requested [DeviceInfo.tx_head_length
]
value. The head bytes are always at the beginning of the buffer.
tail_length: u16
Length of tail bytes in the data contained in this buffer.
Will always be either 0 or the requested [DeviceInfo.tx_tail_length
]
value. The tail bytes are always at the end of the buffer.
Trait Implementations§
§impl<D> Decode<TxBuffer, D> for TxBufferwhere
D: ResourceDialect,
impl<D> Decode<TxBuffer, D> for TxBufferwhere
D: ResourceDialect,
§impl Ord for TxBuffer
impl Ord for TxBuffer
§impl PartialOrd for TxBuffer
impl PartialOrd for TxBuffer
§impl TypeMarker for TxBuffer
impl TypeMarker for TxBuffer
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for TxBuffer
impl ValueTypeMarker for TxBuffer
impl Eq for TxBuffer
impl Persistable for TxBuffer
impl StructuralPartialEq for TxBuffer
Auto Trait Implementations§
impl Freeze for TxBuffer
impl RefUnwindSafe for TxBuffer
impl Send for TxBuffer
impl Sync for TxBuffer
impl Unpin for TxBuffer
impl UnwindSafe for TxBuffer
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more