[−][src]Struct smartpool::prelude::setup::ShortestDeadlineFirst
A priority channel where each task corresponds to a time::SteadyTime deadline, and the task with the earliest deadline will be executed first.
Methods
impl ShortestDeadlineFirst
[src]
impl ShortestDeadlineFirst
[src]
pub fn exec_after(
&self,
future: impl Future<Item = (), Error = ()> + Send + 'static,
delay: Duration
)
[src]
&self,
future: impl Future<Item = (), Error = ()> + Send + 'static,
delay: Duration
)
Submit a future, with the deadline equal to a certain duration after the present.
Trait Implementations
impl Channel for ShortestDeadlineFirst
[src]
fn assign_bits(
&mut self,
assigner: &mut BitAssigner
) -> Result<(), NotEnoughBits>
[src]
&mut self,
assigner: &mut BitAssigner
) -> Result<(), NotEnoughBits>
fn poll(&self) -> Option<RunningTask>
[src]
fn into_shared(self) -> Arc<RwLock<Self>> where
Self: Sized,
[src]
Self: Sized,
Wrap self in a reference counted read/write lock, which is still a channel, and can have shared ownership, allowing it to be used in a scheduler. Read more
impl ExecParam for ShortestDeadlineFirst
[src]
type Param = SteadyTime
fn submit(&self, task: RunningTask, deadline: SteadyTime)
[src]
fn exec(
&self,
future: impl Future<Item = (), Error = ()> + Send + 'static,
param: Self::Param
)
[src]
&self,
future: impl Future<Item = (), Error = ()> + Send + 'static,
param: Self::Param
)
Execute a future on this channel.
fn exec_push<I: Send + 'static, E: Send + 'static>(
&self,
future: impl Future<Item = I, Error = E> + Send + 'static,
param: Self::Param
) -> PushFutureRecv<I, E>
[src]
&self,
future: impl Future<Item = I, Error = E> + Send + 'static,
param: Self::Param
) -> PushFutureRecv<I, E>
Execute a future on this channel, and push the result to a push future.
Auto Trait Implementations
impl Send for ShortestDeadlineFirst
impl Sync for ShortestDeadlineFirst
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,