enum IpcBodySink<'a> {
Write(&'a mut Vec<u8>),
Collect(&'a mut Vec<EncodedBuffer>),
}Expand description
Destination for the raw Arrow data bytes (the IPC message body) produced by write_array_data.
The companion IpcMetadataBuilder accumulates the flatbuffer metadata
(offset + length of each buffer in the body); together they form a complete IPC message.
Variants§
Write(&'a mut Vec<u8>)
Serialize buffer bytes (with padding) into a contiguous byte vec.
Collect(&'a mut Vec<EncodedBuffer>)
Accumulate pre-encoded buffer segments for deferred zero-copy streaming.
Implementations§
Source§impl<'a> IpcBodySink<'a>
impl<'a> IpcBodySink<'a>
Sourcepub fn write(&mut self, pad_len: usize, buffer: EncodedBuffer)
pub fn write(&mut self, pad_len: usize, buffer: EncodedBuffer)
Writes the encoded buffer to the sink.
Auto Trait Implementations§
impl<'a> !UnwindSafe for IpcBodySink<'a>
impl<'a> Freeze for IpcBodySink<'a>
impl<'a> RefUnwindSafe for IpcBodySink<'a>
impl<'a> Send for IpcBodySink<'a>
impl<'a> Sync for IpcBodySink<'a>
impl<'a> Unpin for IpcBodySink<'a>
impl<'a> UnsafeUnpin for IpcBodySink<'a>
Blanket Implementations§
impl<T> Allocation for T
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