pub struct LocalTaskExecQueue<Tx = LocalSender<(), SendError>, G = (), D = ()> { /* private fields */ }

Implementations§

source§

impl<Tx, G, D> LocalTaskExecQueue<Tx, G, D>where Tx: Clone + Sink<(D, LocalTaskType)> + Unpin + 'static, G: Hash + Eq + Clone + Debug + 'static,

source

pub fn try_spawn_with<T>( &self, msg: T, name: D ) -> TryLocalSpawner<'_, T, Tx, G, D> where D: Clone, T: Future + 'static, T::Output: 'static,

source

pub fn spawn_with<T>(&self, msg: T, name: D) -> LocalSpawner<'_, T, Tx, G, D> where D: Clone, T: Future + 'static, T::Output: 'static,

source

pub fn flush(&self) -> LocalFlush<'_, Tx, G, D>

source

pub fn close(&self) -> LocalClose<'_, Tx, G, D>

source

pub fn workers(&self) -> usize

source

pub fn active_count(&self) -> isize

source

pub fn waiting_count(&self) -> isize

source

pub fn completed_count(&self) -> isize

source

pub fn pending_wakers_count(&self) -> usize

source

pub fn waiting_wakers_count(&self) -> usize

source

pub fn rate(&self) -> f64

source

pub fn is_full(&self) -> bool

source

pub fn is_active(&self) -> bool

source

pub fn is_closed(&self) -> bool

source

pub fn is_flushing(&self) -> bool

source§

impl<Tx, G> LocalTaskExecQueue<Tx, G, ()>where Tx: Clone + Sink<((), LocalTaskType)> + Unpin + 'static, G: Hash + Eq + Clone + Debug + 'static,

source

pub fn try_spawn<T>(&self, msg: T) -> TryLocalSpawner<'_, T, Tx, G, ()> where T: Future + 'static, T::Output: 'static,

source

pub fn spawn<T>(&self, msg: T) -> LocalSpawner<'_, T, Tx, G, ()> where T: Future + 'static, T::Output: 'static,

Trait Implementations§

source§

impl<Tx, G, D> Clone for LocalTaskExecQueue<Tx, G, D>where Tx: Clone,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<Tx = LocalSender<((), Box<dyn Future<Output = ()> + Unpin, Global>), SendError>, G = (), D = ()> !RefUnwindSafe for LocalTaskExecQueue<Tx, G, D>

§

impl<Tx = LocalSender<((), Box<dyn Future<Output = ()> + Unpin, Global>), SendError>, G = (), D = ()> !Send for LocalTaskExecQueue<Tx, G, D>

§

impl<Tx = LocalSender<((), Box<dyn Future<Output = ()> + Unpin, Global>), SendError>, G = (), D = ()> !Sync for LocalTaskExecQueue<Tx, G, D>

§

impl<Tx, G, D> Unpin for LocalTaskExecQueue<Tx, G, D>where D: Unpin, Tx: Unpin,

§

impl<Tx = LocalSender<((), Box<dyn Future<Output = ()> + Unpin, Global>), SendError>, G = (), D = ()> !UnwindSafe for LocalTaskExecQueue<Tx, G, D>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArcExt for Twhere T: ?Sized,

§

fn arc(self) -> Arc<Self, Global>where Self: Sized,

source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> MutexExt for Twhere T: ?Sized,

§

fn mutex(self) -> Mutex<Self>where Self: Sized,

§

impl<T> MutexExt for Twhere T: ?Sized,

§

fn mutex(self) -> Mutex<RawMutex, Self>where Self: Sized,

source§

impl<T> QueueExt for Twhere T: ?Sized,

source§

fn queue_stream<Item, F>(self, f: F) -> QueueStream<Self, Item, F>where Self: Sized + Unpin, F: Fn(Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Item>>,

source§

fn queue_sender<Item, F, R>(self, f: F) -> QueueSender<Self, Item, F, R>where Self: Sized + Waker, F: Fn(&mut Self, Action<Item>) -> Reply<R>,

source§

fn queue_channel<Item, F1, R, F2>( self, f1: F1, f2: F2 ) -> (QueueSender<QueueStream<Self, Item, F2>, Item, F1, R>, QueueStream<Self, Item, F2>)where Self: Sized + Unpin + Clone, F1: Fn(&mut QueueStream<Self, Item, F2>, Action<Item>) -> Reply<R>, F2: Fn(Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Item>> + Clone + Unpin,

§

impl<T> RwLockExt for Twhere T: ?Sized,

§

fn rwlock(self) -> RwLock<RawRwLock, Self>where Self: Sized,

§

impl<T> RwLockExt for Twhere T: ?Sized,

§

fn rwlock(self) -> RwLock<Self>where Self: Sized,

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.