pub struct HostIngressStream { /* private fields */ }Expand description
Host-ingress adapter for one in-flight chunked dispatch stream.
This is a compatibility adapter for environments where input bytes arrive
through host memory. It is intentionally named after ingress, not execution:
the device-resident execution model lives in vyre-runtime::megakernel.
Implementations§
Source§impl HostIngressStream
impl HostIngressStream
Sourcepub fn new(pipeline: WgpuPipeline, config: DispatchConfig) -> Self
pub fn new(pipeline: WgpuPipeline, config: DispatchConfig) -> Self
Create a host-ingress stream from a compiled wgpu pipeline.
Sourcepub fn from_runner<F>(runner: F, config: DispatchConfig) -> Self
pub fn from_runner<F>(runner: F, config: DispatchConfig) -> Self
Create a host-ingress stream from a custom chunk runner.
Sourcepub fn push_chunk(
&mut self,
bytes: Vec<u8>,
) -> Result<Option<Vec<Vec<u8>>>, BackendError>
pub fn push_chunk( &mut self, bytes: Vec<u8>, ) -> Result<Option<Vec<Vec<u8>>>, BackendError>
Push a host-memory chunk and return the previous chunk’s output when one exists.
§Errors
Returns a backend error if the previous chunk failed or the worker thread panicked before reporting a backend result.
Auto Trait Implementations§
impl !RefUnwindSafe for HostIngressStream
impl !UnwindSafe for HostIngressStream
impl Freeze for HostIngressStream
impl Send for HostIngressStream
impl Sync for HostIngressStream
impl Unpin for HostIngressStream
impl UnsafeUnpin for HostIngressStream
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