pub struct Lane { /* private fields */ }Expand description
Lane
Implementations§
Source§impl Lane
impl Lane
Sourcepub fn new(
id: impl Into<String>,
config: LaneConfig,
priority: Priority,
) -> Self
pub fn new( id: impl Into<String>, config: LaneConfig, priority: Priority, ) -> Self
Create a new lane
Sourcepub fn with_storage(
id: impl Into<String>,
config: LaneConfig,
priority: Priority,
storage: Arc<dyn Storage>,
) -> Self
pub fn with_storage( id: impl Into<String>, config: LaneConfig, priority: Priority, storage: Arc<dyn Storage>, ) -> Self
Create a new lane with storage
Sourcepub async fn effective_priority(&self) -> Priority
pub async fn effective_priority(&self) -> Priority
Get effective priority, applying boost based on the front command’s age
Sourcepub async fn enqueue(
&self,
command: Box<dyn Command>,
) -> Receiver<Result<Value>>
pub async fn enqueue( &self, command: Box<dyn Command>, ) -> Receiver<Result<Value>>
Enqueue a command
Sourcepub async fn status(&self) -> LaneStatus
pub async fn status(&self) -> LaneStatus
Get lane status
Auto Trait Implementations§
impl Freeze for Lane
impl !RefUnwindSafe for Lane
impl Send for Lane
impl Sync for Lane
impl Unpin for Lane
impl UnsafeUnpin for Lane
impl !UnwindSafe for Lane
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