pub struct LaneControlQueue { /* private fields */ }Expand description
A bounded, off-loop worker for durable Lane control verbs.
Implementations§
Source§impl LaneControlQueue
impl LaneControlQueue
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a queue with no worker attached. Submissions accumulate until a worker drains them, which is what the tests use to observe the queue deterministically.
Sourcepub fn submit(
&self,
operation: ControlOperation,
raw_target: Option<&str>,
registry_root: Option<PathBuf>,
) -> ControlReceipt
pub fn submit( &self, operation: ControlOperation, raw_target: Option<&str>, registry_root: Option<PathBuf>, ) -> ControlReceipt
Submit a Lane control verb for off-loop execution.
Everything that can be decided without blocking is decided here and returned synchronously: unknown verb, malformed target, unavailable backend, saturated queue. Only the blocking teardown is deferred.
Sourcepub fn drain_completed(&self) -> Vec<ControlReceipt>
pub fn drain_completed(&self) -> Vec<ControlReceipt>
Take every terminal receipt produced since the last drain.
Trait Implementations§
Source§impl Clone for LaneControlQueue
impl Clone for LaneControlQueue
Source§impl Debug for LaneControlQueue
impl Debug for LaneControlQueue
Auto Trait Implementations§
impl Forget for LaneControlQueue
impl Freeze for LaneControlQueue
impl Move for LaneControlQueue
impl RefUnwindSafe for LaneControlQueue
impl Send for LaneControlQueue
impl Sync for LaneControlQueue
impl Unpin for LaneControlQueue
impl UnsafeUnpin for LaneControlQueue
impl UnwindSafe for LaneControlQueue
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.