pub struct Pipelines { /* private fields */ }Expand description
Every class’s fan, standing, for the life of the process.
Built once in [crate::server::SshServer::new]. A request classifies, passes
the governor, and is submitted here; the thread that runs it was already
alive and parked before the client connected.
Implementations§
Source§impl Pipelines
impl Pipelines
Sourcepub fn start(cores: usize, depth: usize) -> Pipelines
pub fn start(cores: usize, depth: usize) -> Pipelines
Build all five fans. Call this at BOOT, once.
depth is per class, not shared: a queue of clones filling up must not
refuse an ls-remote, which is the same head-of-line reasoning the
governor’s per-class sojourn windows exist for.
Sourcepub fn submit(&self, class: OpClass, job: Job) -> Result<usize, SubmitError>
pub fn submit(&self, class: OpClass, job: Job) -> Result<usize, SubmitError>
Hand an operation to its class’s standing fan.
Auto Trait Implementations§
impl !Freeze for Pipelines
impl RefUnwindSafe for Pipelines
impl Send for Pipelines
impl Sync for Pipelines
impl Unpin for Pipelines
impl UnsafeUnpin for Pipelines
impl UnwindSafe for Pipelines
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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