pub struct Pipeline { /* private fields */ }Expand description
Pipeline that processes streaming responses
Implementations§
Source§impl Pipeline
impl Pipeline
Sourcepub fn from_manifest(manifest: &ProtocolManifest) -> Result<Self, PipelineError>
pub fn from_manifest(manifest: &ProtocolManifest) -> Result<Self, PipelineError>
Create pipeline from protocol manifest
Sourcepub async fn process_stream(
&self,
input: BoxStream<'static, Bytes>,
) -> PipeResult<BoxStream<'static, StreamingEvent>>
pub async fn process_stream( &self, input: BoxStream<'static, Bytes>, ) -> PipeResult<BoxStream<'static, StreamingEvent>>
Process a byte stream through the pipeline
pub async fn process_stream_arc( self: Arc<Self>, input: BoxStream<'static, Bytes>, ) -> PipeResult<BoxStream<'static, StreamingEvent>>
Auto Trait Implementations§
impl Freeze for Pipeline
impl !RefUnwindSafe for Pipeline
impl Send for Pipeline
impl Sync for Pipeline
impl Unpin for Pipeline
impl !UnwindSafe for Pipeline
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