pub struct RotationPipeline { /* private fields */ }Expand description
Async rotation pipeline
Implementations§
Source§impl RotationPipeline
impl RotationPipeline
Sourcepub fn new(config: RotationConfig) -> Self
pub fn new(config: RotationConfig) -> Self
Create a new rotation pipeline
Sourcepub fn try_recv(&self) -> Option<RotationOutput>
pub fn try_recv(&self) -> Option<RotationOutput>
Try to receive a rotated vector (non-blocking)
Sourcepub fn recv(&self) -> Option<RotationOutput>
pub fn recv(&self) -> Option<RotationOutput>
Receive a rotated vector (blocking)
Sourcepub fn recv_batch(&self, max: usize) -> Vec<RotationOutput>
pub fn recv_batch(&self, max: usize) -> Vec<RotationOutput>
Receive a batch of rotated vectors
Sourcepub fn stats(&self) -> PipelineStats
pub fn stats(&self) -> PipelineStats
Get current statistics
Sourcepub fn flush(&self) -> Vec<RotationOutput>
pub fn flush(&self) -> Vec<RotationOutput>
Flush all pending work and wait for completion
Sourcepub fn shutdown(self) -> Vec<RotationOutput>
pub fn shutdown(self) -> Vec<RotationOutput>
Shutdown the pipeline
Auto Trait Implementations§
impl !Freeze for RotationPipeline
impl !RefUnwindSafe for RotationPipeline
impl !UnwindSafe for RotationPipeline
impl Send for RotationPipeline
impl Sync for RotationPipeline
impl Unpin for RotationPipeline
impl UnsafeUnpin for RotationPipeline
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more