pub struct StreamTensor {
pub descriptor: TensorDescriptor,
pub buffers: Vec<Bytes>,
}Expand description
A decoded tensor: its descriptor plus zero-copy buffer views.
Each element in buffers corresponds to the [hurray_core::BufferHandle]
at the same index in descriptor.buffers.
Fields§
§descriptor: TensorDescriptorThe decoded tensor descriptor.
buffers: Vec<Bytes>Raw buffer bytes, one [Bytes] per buffer handle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamTensor
impl RefUnwindSafe for StreamTensor
impl Send for StreamTensor
impl Sync for StreamTensor
impl Unpin for StreamTensor
impl UnsafeUnpin for StreamTensor
impl UnwindSafe for StreamTensor
Blanket Implementations§
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