refactor: redesign scheduler with shared worker pool and fallible iterators
Release / release (push) Successful in 1m11s
Release / release (push) Successful in 1m11s
The pipeline scheduler is refactored to use a shared worker pool instead of dedicated threads per stage, and `PipeIter` now yields `Result` items to propagate errors as the last element. The change introduces a new state machine for scheduling, updates error handling types, and reorganizes tests to cover scheduling and shutdown behaviors separately. - Update package version to 0.2.0, Rust MSRV to 1.100, and add `crossbeam-channel` dependency in `Cargo.toml` and `Cargo.lock`. - Refactor `src/scheduler/pipe.rs` to yield `Result<Out, PipelineError>` from `PipeIter`, adding cancellation support and moving `finish` to `pool.rs` as `wait`. - Introduce `src/scheduler/state.rs` with `State`, `Job`, and `Outcome` types, moving `dispatch` from `runner.rs` to `pick` in the new module. - Rewrite `src/scheduler/runner.rs` to use shared state and signals, removing `dispatch` and `transform_runner` while adding worker and source/sink runners with lock-based synchronization. - Add `src/scheduler/pool.rs` methods `start` and `wait` to manage thread lifecycle, replacing the previous handle-based approach in `WorkerPool`. - Replace `WorkerPanic` with `Panicked` and add `NeverFails` error types in `src/scheduler/error.rs` for clearer error reporting. - Update `src/scheduler/macros.rs` to use fallible variants for source, transform, flat, and sink macros, ensuring proper error propagation. - Remove `WorkerTask` from `src/scheduler/types.rs` and add `SharedFlatFn` alias for 1->N transform functions returning lazy sequences. - Update `src/lib.rs` documentation to reflect the new scheduler behavior and expose `NeverFails` and `Stage` publicly. - Enhance `src/throttle.rs` documentation to clarify slot acquisition rules and guard behavior in flat stages to prevent deadlocks. - Add `tests/scheduling.rs` with tests for deadlock prevention and scheduling priority, moving `fallible_flat_stage_error_is_returned_and_does_not_hang` from `tests/errors.rs`. - Add `tests/shutdown.rs` with tests for early drop and panic message preservation, moving `worker_panic_is_returned_and_does_not_hang` from `tests/errors.rs`. - Refactor `tests/errors.rs` to focus on error propagation as the last iterator item, adding comprehensive tests for panics and type mismatches. - Update `tests/pipe.rs` to use `.collect::<Result<_, _>>()` for handling fallible iterators in existing tests. - Add `figures/pipeline.svg` visualizing the parallel scheduler logic. - Add API documentation snapshots for version 0.2.0 in `api/`. - Update `.crate-kit/` scripts to support MSRV checking and improved dependency update logic, adding `msrv-check.sh` and refining `publish-guard.sh`.
This commit is contained in:
1 parent
f68243cde0
commit
8fbd73a657
30 files changed
+1930
-561
No files matched your search
Binary file not shown.
@@ -0,0 +1 @@
|
||||
rustc 1.100.0 (0ef1bc386 2026-11-09) | cargo-public-api 0.52.0
|
||||
+198
@@ -0,0 +1,198 @@
|
||||
pub mod obipipeline
|
||||
pub mod obipipeline::throttle
|
||||
pub struct obipipeline::throttle::Throttle
|
||||
impl obipipeline::throttle::Throttle
|
||||
pub fn obipipeline::throttle::Throttle::acquire_guard(&alloc::rcs::arc::Arc<Self>) -> obipipeline::throttle::ThrottleGuard
|
||||
impl obipipeline::throttle::Throttle
|
||||
pub fn obipipeline::throttle::Throttle::new(usize) -> Self
|
||||
impl core::marker::Forget for obipipeline::throttle::Throttle
|
||||
impl !core::marker::Freeze for obipipeline::throttle::Throttle
|
||||
impl core::marker::Move for obipipeline::throttle::Throttle
|
||||
impl core::marker::Send for obipipeline::throttle::Throttle
|
||||
impl core::marker::Sync for obipipeline::throttle::Throttle
|
||||
impl core::marker::Unpin for obipipeline::throttle::Throttle
|
||||
impl core::marker::UnsafeUnpin for obipipeline::throttle::Throttle
|
||||
impl core::panic::unwind_safe::RefUnwindSafe for obipipeline::throttle::Throttle
|
||||
impl core::panic::unwind_safe::UnwindSafe for obipipeline::throttle::Throttle
|
||||
pub struct obipipeline::throttle::ThrottleGuard(_)
|
||||
impl core::ops::drop::Drop for obipipeline::throttle::ThrottleGuard
|
||||
pub fn obipipeline::throttle::ThrottleGuard::drop(&mut self)
|
||||
impl core::marker::Forget for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Freeze for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Move for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Send for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Sync for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Unpin for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::UnsafeUnpin for obipipeline::throttle::ThrottleGuard
|
||||
impl core::panic::unwind_safe::RefUnwindSafe for obipipeline::throttle::ThrottleGuard
|
||||
impl core::panic::unwind_safe::UnwindSafe for obipipeline::throttle::ThrottleGuard
|
||||
pub struct obipipeline::throttle::Throttled<T>
|
||||
pub obipipeline::throttle::Throttled::guard: obipipeline::throttle::ThrottleGuard
|
||||
pub obipipeline::throttle::Throttled::item: T
|
||||
impl<T> core::marker::Forget for obipipeline::throttle::Throttled<T>
|
||||
impl<T> core::marker::Freeze for obipipeline::throttle::Throttled<T> where T: core::marker::Freeze
|
||||
impl<T> core::marker::Move for obipipeline::throttle::Throttled<T>
|
||||
impl<T> core::marker::Send for obipipeline::throttle::Throttled<T> where T: core::marker::Send
|
||||
impl<T> core::marker::Sync for obipipeline::throttle::Throttled<T> where T: core::marker::Sync
|
||||
impl<T> core::marker::Unpin for obipipeline::throttle::Throttled<T> where T: core::marker::Unpin
|
||||
impl<T> core::marker::UnsafeUnpin for obipipeline::throttle::Throttled<T> where T: core::marker::UnsafeUnpin
|
||||
impl<T> core::panic::unwind_safe::RefUnwindSafe for obipipeline::throttle::Throttled<T> where T: core::panic::unwind_safe::RefUnwindSafe
|
||||
impl<T> core::panic::unwind_safe::UnwindSafe for obipipeline::throttle::Throttled<T> where T: core::panic::unwind_safe::UnwindSafe
|
||||
pub fn obipipeline::throttle::throttle<I>(I, usize) -> impl core::iter::traits::iterator::Iterator<Item = obipipeline::throttle::Throttled<<I as core::iter::traits::iterator::Iterator>::Item>> where I: core::iter::traits::iterator::Iterator, <I as core::iter::traits::iterator::Iterator>::Item: core::marker::Send + 'static
|
||||
pub macro obipipeline::make_flat_transform!
|
||||
pub macro obipipeline::make_flat_transform_fallible!
|
||||
pub macro obipipeline::make_pipe!
|
||||
pub macro obipipeline::make_pipeline!
|
||||
pub macro obipipeline::make_sink!
|
||||
pub macro obipipeline::make_sink_fallible!
|
||||
pub macro obipipeline::make_source!
|
||||
pub macro obipipeline::make_source_fallible!
|
||||
pub macro obipipeline::make_transform!
|
||||
pub macro obipipeline::make_transform_fallible!
|
||||
pub enum obipipeline::PipelineError
|
||||
pub obipipeline::PipelineError::EndOfStream
|
||||
pub obipipeline::PipelineError::StepError(alloc::boxed::Box<(dyn core::error::Error + core::marker::Send + core::marker::Sync)>)
|
||||
pub obipipeline::PipelineError::TypeMismatch
|
||||
impl core::error::Error for obipipeline::PipelineError
|
||||
pub fn obipipeline::PipelineError::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
|
||||
impl core::fmt::Debug for obipipeline::PipelineError
|
||||
pub fn obipipeline::PipelineError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
|
||||
impl core::fmt::Display for obipipeline::PipelineError
|
||||
pub fn obipipeline::PipelineError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
|
||||
impl core::marker::Forget for obipipeline::PipelineError
|
||||
impl core::marker::Freeze for obipipeline::PipelineError
|
||||
impl core::marker::Move for obipipeline::PipelineError
|
||||
impl core::marker::Send for obipipeline::PipelineError
|
||||
impl core::marker::Sync for obipipeline::PipelineError
|
||||
impl core::marker::Unpin for obipipeline::PipelineError
|
||||
impl core::marker::UnsafeUnpin for obipipeline::PipelineError
|
||||
impl !core::panic::unwind_safe::RefUnwindSafe for obipipeline::PipelineError
|
||||
impl !core::panic::unwind_safe::UnwindSafe for obipipeline::PipelineError
|
||||
pub enum obipipeline::Stage<D>
|
||||
pub obipipeline::Stage::Flat(obipipeline::SharedFlatFn<D>)
|
||||
pub obipipeline::Stage::Transform(obipipeline::SharedFn<D>)
|
||||
impl<D> core::clone::Clone for obipipeline::Stage<D>
|
||||
pub fn obipipeline::Stage<D>::clone(&self) -> Self
|
||||
impl<D> core::marker::Forget for obipipeline::Stage<D>
|
||||
impl<D> core::marker::Freeze for obipipeline::Stage<D> where alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> core::result::Result<D, obipipeline::PipelineError> + core::marker::Send + core::marker::Sync)>: core::marker::Freeze, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> alloc::boxed::Box<(dyn core::iter::traits::iterator::Iterator<Item = core::result::Result<D, obipipeline::PipelineError>> + core::marker::Send)> + core::marker::Send + core::marker::Sync)>: core::marker::Freeze
|
||||
impl<D> core::marker::Move for obipipeline::Stage<D>
|
||||
impl<D> core::marker::Send for obipipeline::Stage<D> where alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> core::result::Result<D, obipipeline::PipelineError> + core::marker::Send + core::marker::Sync)>: core::marker::Send, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> alloc::boxed::Box<(dyn core::iter::traits::iterator::Iterator<Item = core::result::Result<D, obipipeline::PipelineError>> + core::marker::Send)> + core::marker::Send + core::marker::Sync)>: core::marker::Send
|
||||
impl<D> core::marker::Sync for obipipeline::Stage<D> where alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> core::result::Result<D, obipipeline::PipelineError> + core::marker::Send + core::marker::Sync)>: core::marker::Sync, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> alloc::boxed::Box<(dyn core::iter::traits::iterator::Iterator<Item = core::result::Result<D, obipipeline::PipelineError>> + core::marker::Send)> + core::marker::Send + core::marker::Sync)>: core::marker::Sync
|
||||
impl<D> core::marker::Unpin for obipipeline::Stage<D> where alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> core::result::Result<D, obipipeline::PipelineError> + core::marker::Send + core::marker::Sync)>: core::marker::Unpin, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> alloc::boxed::Box<(dyn core::iter::traits::iterator::Iterator<Item = core::result::Result<D, obipipeline::PipelineError>> + core::marker::Send)> + core::marker::Send + core::marker::Sync)>: core::marker::Unpin
|
||||
impl<D> core::marker::UnsafeUnpin for obipipeline::Stage<D> where alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> core::result::Result<D, obipipeline::PipelineError> + core::marker::Send + core::marker::Sync)>: core::marker::UnsafeUnpin, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> alloc::boxed::Box<(dyn core::iter::traits::iterator::Iterator<Item = core::result::Result<D, obipipeline::PipelineError>> + core::marker::Send)> + core::marker::Send + core::marker::Sync)>: core::marker::UnsafeUnpin
|
||||
impl<D> !core::panic::unwind_safe::RefUnwindSafe for obipipeline::Stage<D>
|
||||
impl<D> !core::panic::unwind_safe::UnwindSafe for obipipeline::Stage<D>
|
||||
pub struct obipipeline::NeverFails(_)
|
||||
impl core::error::Error for obipipeline::NeverFails
|
||||
impl core::fmt::Debug for obipipeline::NeverFails
|
||||
pub fn obipipeline::NeverFails::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
|
||||
impl core::fmt::Display for obipipeline::NeverFails
|
||||
pub fn obipipeline::NeverFails::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
|
||||
impl core::marker::Forget for obipipeline::NeverFails
|
||||
impl core::marker::Freeze for obipipeline::NeverFails
|
||||
impl core::marker::Move for obipipeline::NeverFails
|
||||
impl core::marker::Send for obipipeline::NeverFails
|
||||
impl core::marker::Sync for obipipeline::NeverFails
|
||||
impl core::marker::Unpin for obipipeline::NeverFails
|
||||
impl core::marker::UnsafeUnpin for obipipeline::NeverFails
|
||||
impl core::panic::unwind_safe::RefUnwindSafe for obipipeline::NeverFails
|
||||
impl core::panic::unwind_safe::UnwindSafe for obipipeline::NeverFails
|
||||
pub struct obipipeline::Pipe<D, In, Out>
|
||||
impl<D, In, Out> obipipeline::Pipe<D, In, Out> where D: core::marker::Send + core::marker::Sync + 'static, In: core::marker::Send + 'static, Out: core::marker::Send + 'static
|
||||
pub fn obipipeline::Pipe<D, In, Out>::apply(self, impl core::iter::traits::iterator::Iterator<Item = In> + core::marker::Send + 'static, usize, usize) -> obipipeline::PipeIter<Out>
|
||||
impl<D, In, Out> obipipeline::Pipe<D, In, Out>
|
||||
pub fn obipipeline::Pipe<D, In, Out>::new(alloc::vec::Vec<obipipeline::Stage<D>>, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(In) -> D + core::marker::Send + core::marker::Sync)>, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> Out + core::marker::Send + core::marker::Sync)>) -> Self
|
||||
pub fn obipipeline::Pipe<D, In, Out>::then<Next>(self, obipipeline::Pipe<D, Out, Next>) -> obipipeline::Pipe<D, In, Next>
|
||||
impl<D, In, Out> core::marker::Forget for obipipeline::Pipe<D, In, Out>
|
||||
impl<D, In, Out> core::marker::Freeze for obipipeline::Pipe<D, In, Out> where alloc::vec::Vec<obipipeline::Stage<D>>: core::marker::Freeze, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(In) -> D + core::marker::Send + core::marker::Sync)>: core::marker::Freeze, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> Out + core::marker::Send + core::marker::Sync)>: core::marker::Freeze, core::marker::PhantomData<(In, Out)>: core::marker::Freeze
|
||||
impl<D, In, Out> core::marker::Move for obipipeline::Pipe<D, In, Out>
|
||||
impl<D, In, Out> core::marker::Send for obipipeline::Pipe<D, In, Out> where alloc::vec::Vec<obipipeline::Stage<D>>: core::marker::Send, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(In) -> D + core::marker::Send + core::marker::Sync)>: core::marker::Send, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> Out + core::marker::Send + core::marker::Sync)>: core::marker::Send, core::marker::PhantomData<(In, Out)>: core::marker::Send
|
||||
impl<D, In, Out> core::marker::Sync for obipipeline::Pipe<D, In, Out> where alloc::vec::Vec<obipipeline::Stage<D>>: core::marker::Sync, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(In) -> D + core::marker::Send + core::marker::Sync)>: core::marker::Sync, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> Out + core::marker::Send + core::marker::Sync)>: core::marker::Sync, core::marker::PhantomData<(In, Out)>: core::marker::Sync
|
||||
impl<D, In, Out> core::marker::Unpin for obipipeline::Pipe<D, In, Out> where alloc::vec::Vec<obipipeline::Stage<D>>: core::marker::Unpin, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(In) -> D + core::marker::Send + core::marker::Sync)>: core::marker::Unpin, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> Out + core::marker::Send + core::marker::Sync)>: core::marker::Unpin, core::marker::PhantomData<(In, Out)>: core::marker::Unpin
|
||||
impl<D, In, Out> core::marker::UnsafeUnpin for obipipeline::Pipe<D, In, Out> where alloc::vec::Vec<obipipeline::Stage<D>>: core::marker::UnsafeUnpin, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(In) -> D + core::marker::Send + core::marker::Sync)>: core::marker::UnsafeUnpin, alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> Out + core::marker::Send + core::marker::Sync)>: core::marker::UnsafeUnpin, core::marker::PhantomData<(In, Out)>: core::marker::UnsafeUnpin
|
||||
impl<D, In, Out> !core::panic::unwind_safe::RefUnwindSafe for obipipeline::Pipe<D, In, Out>
|
||||
impl<D, In, Out> !core::panic::unwind_safe::UnwindSafe for obipipeline::Pipe<D, In, Out>
|
||||
pub struct obipipeline::PipeIter<Out>
|
||||
impl<Out> core::iter::traits::iterator::Iterator for obipipeline::PipeIter<Out>
|
||||
pub type obipipeline::PipeIter<Out>::Item = core::result::Result<Out, obipipeline::PipelineError>
|
||||
pub fn obipipeline::PipeIter<Out>::next(&mut self) -> core::option::Option<Self::Item>
|
||||
impl<Out> core::ops::drop::Drop for obipipeline::PipeIter<Out>
|
||||
pub fn obipipeline::PipeIter<Out>::drop(&mut self)
|
||||
impl<Out> core::marker::Forget for obipipeline::PipeIter<Out>
|
||||
impl<Out> core::marker::Freeze for obipipeline::PipeIter<Out> where core::option::Option<crossbeam_channel::channel::Receiver<Out>>: core::marker::Freeze
|
||||
impl<Out> core::marker::Move for obipipeline::PipeIter<Out>
|
||||
impl<Out> core::marker::Send for obipipeline::PipeIter<Out> where core::option::Option<crossbeam_channel::channel::Receiver<Out>>: core::marker::Send
|
||||
impl<Out> core::marker::Sync for obipipeline::PipeIter<Out> where core::option::Option<crossbeam_channel::channel::Receiver<Out>>: core::marker::Sync
|
||||
impl<Out> core::marker::Unpin for obipipeline::PipeIter<Out> where core::option::Option<crossbeam_channel::channel::Receiver<Out>>: core::marker::Unpin
|
||||
impl<Out> core::marker::UnsafeUnpin for obipipeline::PipeIter<Out> where core::option::Option<crossbeam_channel::channel::Receiver<Out>>: core::marker::UnsafeUnpin
|
||||
impl<Out> !core::panic::unwind_safe::RefUnwindSafe for obipipeline::PipeIter<Out>
|
||||
impl<Out> !core::panic::unwind_safe::UnwindSafe for obipipeline::PipeIter<Out>
|
||||
pub struct obipipeline::Pipeline<DATA>
|
||||
impl<DATA> obipipeline::Pipeline<DATA>
|
||||
pub fn obipipeline::Pipeline<DATA>::new(obipipeline::SourceFn<DATA>, alloc::vec::Vec<obipipeline::Stage<DATA>>, obipipeline::SinkFn<DATA>) -> Self
|
||||
impl<DATA> core::marker::Forget for obipipeline::Pipeline<DATA>
|
||||
impl<DATA> core::marker::Freeze for obipipeline::Pipeline<DATA> where alloc::boxed::Box<(dyn core::ops::function::FnMut() -> core::result::Result<DATA, obipipeline::PipelineError> + core::marker::Send)>: core::marker::Freeze, alloc::vec::Vec<obipipeline::Stage<DATA>>: core::marker::Freeze, alloc::boxed::Box<(dyn core::ops::function::Fn(DATA) -> core::result::Result<(), obipipeline::PipelineError> + core::marker::Send)>: core::marker::Freeze
|
||||
impl<DATA> core::marker::Move for obipipeline::Pipeline<DATA>
|
||||
impl<DATA> core::marker::Send for obipipeline::Pipeline<DATA> where alloc::boxed::Box<(dyn core::ops::function::FnMut() -> core::result::Result<DATA, obipipeline::PipelineError> + core::marker::Send)>: core::marker::Send, alloc::vec::Vec<obipipeline::Stage<DATA>>: core::marker::Send, alloc::boxed::Box<(dyn core::ops::function::Fn(DATA) -> core::result::Result<(), obipipeline::PipelineError> + core::marker::Send)>: core::marker::Send
|
||||
impl<DATA> !core::marker::Sync for obipipeline::Pipeline<DATA>
|
||||
impl<DATA> core::marker::Unpin for obipipeline::Pipeline<DATA> where alloc::boxed::Box<(dyn core::ops::function::FnMut() -> core::result::Result<DATA, obipipeline::PipelineError> + core::marker::Send)>: core::marker::Unpin, alloc::vec::Vec<obipipeline::Stage<DATA>>: core::marker::Unpin, alloc::boxed::Box<(dyn core::ops::function::Fn(DATA) -> core::result::Result<(), obipipeline::PipelineError> + core::marker::Send)>: core::marker::Unpin
|
||||
impl<DATA> core::marker::UnsafeUnpin for obipipeline::Pipeline<DATA> where alloc::boxed::Box<(dyn core::ops::function::FnMut() -> core::result::Result<DATA, obipipeline::PipelineError> + core::marker::Send)>: core::marker::UnsafeUnpin, alloc::vec::Vec<obipipeline::Stage<DATA>>: core::marker::UnsafeUnpin, alloc::boxed::Box<(dyn core::ops::function::Fn(DATA) -> core::result::Result<(), obipipeline::PipelineError> + core::marker::Send)>: core::marker::UnsafeUnpin
|
||||
impl<DATA> !core::panic::unwind_safe::RefUnwindSafe for obipipeline::Pipeline<DATA>
|
||||
impl<DATA> !core::panic::unwind_safe::UnwindSafe for obipipeline::Pipeline<DATA>
|
||||
pub struct obipipeline::Throttle
|
||||
impl obipipeline::throttle::Throttle
|
||||
pub fn obipipeline::throttle::Throttle::acquire_guard(&alloc::rcs::arc::Arc<Self>) -> obipipeline::throttle::ThrottleGuard
|
||||
impl obipipeline::throttle::Throttle
|
||||
pub fn obipipeline::throttle::Throttle::new(usize) -> Self
|
||||
impl core::marker::Forget for obipipeline::throttle::Throttle
|
||||
impl !core::marker::Freeze for obipipeline::throttle::Throttle
|
||||
impl core::marker::Move for obipipeline::throttle::Throttle
|
||||
impl core::marker::Send for obipipeline::throttle::Throttle
|
||||
impl core::marker::Sync for obipipeline::throttle::Throttle
|
||||
impl core::marker::Unpin for obipipeline::throttle::Throttle
|
||||
impl core::marker::UnsafeUnpin for obipipeline::throttle::Throttle
|
||||
impl core::panic::unwind_safe::RefUnwindSafe for obipipeline::throttle::Throttle
|
||||
impl core::panic::unwind_safe::UnwindSafe for obipipeline::throttle::Throttle
|
||||
pub struct obipipeline::ThrottleGuard(_)
|
||||
impl core::ops::drop::Drop for obipipeline::throttle::ThrottleGuard
|
||||
pub fn obipipeline::throttle::ThrottleGuard::drop(&mut self)
|
||||
impl core::marker::Forget for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Freeze for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Move for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Send for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Sync for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::Unpin for obipipeline::throttle::ThrottleGuard
|
||||
impl core::marker::UnsafeUnpin for obipipeline::throttle::ThrottleGuard
|
||||
impl core::panic::unwind_safe::RefUnwindSafe for obipipeline::throttle::ThrottleGuard
|
||||
impl core::panic::unwind_safe::UnwindSafe for obipipeline::throttle::ThrottleGuard
|
||||
pub struct obipipeline::Throttled<T>
|
||||
pub obipipeline::Throttled::guard: obipipeline::throttle::ThrottleGuard
|
||||
pub obipipeline::Throttled::item: T
|
||||
impl<T> core::marker::Forget for obipipeline::throttle::Throttled<T>
|
||||
impl<T> core::marker::Freeze for obipipeline::throttle::Throttled<T> where T: core::marker::Freeze
|
||||
impl<T> core::marker::Move for obipipeline::throttle::Throttled<T>
|
||||
impl<T> core::marker::Send for obipipeline::throttle::Throttled<T> where T: core::marker::Send
|
||||
impl<T> core::marker::Sync for obipipeline::throttle::Throttled<T> where T: core::marker::Sync
|
||||
impl<T> core::marker::Unpin for obipipeline::throttle::Throttled<T> where T: core::marker::Unpin
|
||||
impl<T> core::marker::UnsafeUnpin for obipipeline::throttle::Throttled<T> where T: core::marker::UnsafeUnpin
|
||||
impl<T> core::panic::unwind_safe::RefUnwindSafe for obipipeline::throttle::Throttled<T> where T: core::panic::unwind_safe::RefUnwindSafe
|
||||
impl<T> core::panic::unwind_safe::UnwindSafe for obipipeline::throttle::Throttled<T> where T: core::panic::unwind_safe::UnwindSafe
|
||||
pub struct obipipeline::WorkerPool<DATA>
|
||||
impl<DATA> obipipeline::WorkerPool<DATA> where DATA: core::marker::Send + core::marker::Sync + 'static
|
||||
pub fn obipipeline::WorkerPool<DATA>::new(obipipeline::Pipeline<DATA>, usize, usize) -> Self
|
||||
pub fn obipipeline::WorkerPool<DATA>::run(self) -> core::result::Result<(), obipipeline::PipelineError>
|
||||
impl<DATA> core::marker::Forget for obipipeline::WorkerPool<DATA>
|
||||
impl<DATA> core::marker::Freeze for obipipeline::WorkerPool<DATA> where obipipeline::Pipeline<DATA>: core::marker::Freeze
|
||||
impl<DATA> core::marker::Move for obipipeline::WorkerPool<DATA>
|
||||
impl<DATA> core::marker::Send for obipipeline::WorkerPool<DATA> where obipipeline::Pipeline<DATA>: core::marker::Send
|
||||
impl<DATA> !core::marker::Sync for obipipeline::WorkerPool<DATA>
|
||||
impl<DATA> core::marker::Unpin for obipipeline::WorkerPool<DATA> where obipipeline::Pipeline<DATA>: core::marker::Unpin
|
||||
impl<DATA> core::marker::UnsafeUnpin for obipipeline::WorkerPool<DATA> where obipipeline::Pipeline<DATA>: core::marker::UnsafeUnpin
|
||||
impl<DATA> !core::panic::unwind_safe::RefUnwindSafe for obipipeline::WorkerPool<DATA>
|
||||
impl<DATA> !core::panic::unwind_safe::UnwindSafe for obipipeline::WorkerPool<DATA>
|
||||
pub fn obipipeline::throttle<I>(I, usize) -> impl core::iter::traits::iterator::Iterator<Item = obipipeline::throttle::Throttled<<I as core::iter::traits::iterator::Iterator>::Item>> where I: core::iter::traits::iterator::Iterator, <I as core::iter::traits::iterator::Iterator>::Item: core::marker::Send + 'static
|
||||
pub type obipipeline::FlatOutput<D> = alloc::boxed::Box<(dyn core::iter::traits::iterator::Iterator<Item = core::result::Result<D, obipipeline::PipelineError>> + core::marker::Send)>
|
||||
pub type obipipeline::SharedFlatFn<D> = alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> obipipeline::FlatOutput<D> + core::marker::Send + core::marker::Sync)>
|
||||
pub type obipipeline::SharedFn<D> = alloc::rcs::arc::Arc<(dyn core::ops::function::Fn(D) -> core::result::Result<D, obipipeline::PipelineError> + core::marker::Send + core::marker::Sync)>
|
||||
pub type obipipeline::SinkFn<D> = alloc::boxed::Box<(dyn core::ops::function::Fn(D) -> core::result::Result<(), obipipeline::PipelineError> + core::marker::Send)>
|
||||
pub type obipipeline::SourceFn<D> = alloc::boxed::Box<(dyn core::ops::function::FnMut() -> core::result::Result<D, obipipeline::PipelineError> + core::marker::Send)>
|
||||
Reference in new issue
Block a user