pub struct Controller<K, V, R> where
K: Sync + Send + Hash + Eq,
V: Sync + Send + 'static,
R: 'static, { /* fields omitted */ }
The Controller is a non-producing handle to the scheduler.
It allows creation of new channels as well as clearing of queues.
Create a new channel, returns the producer site.
See below for bound.
May block if clearing or scheduling tick is currently running.
Is the next power of two for the handed value
Clear queue for specific channel & running jobs if supported.
May block if channel
is called or a schedule is running.
Note that for a queue with bounds n, it has a O(n) worst case complexity.
Returns Err if the specified channel is invalid.
Manually trigger schedule. Normaly not required but if you should drop a lot of channels and
don't insert/complete a job in the next time, you may call this.
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static