pub struct Group<'d, F, const N: usize> { /* private fields */ }Expand description
Inline streaming group for 1 through 16 homogeneous fibers. Slots, bindings, readiness, and membership stay resident; wakes produced while polling enter the next stable batch.
Implementations§
Source§impl<'d, F, const N: usize> Group<'d, F, N>
impl<'d, F, const N: usize> Group<'d, F, N>
Sourcepub fn try_new<'a>(
target: Vacant<'a, Self>,
parent: RootWaker<'d>,
) -> Result<Occupied<'a, Self>, Error>
pub fn try_new<'a>( target: Vacant<'a, Self>, parent: RootWaker<'d>, ) -> Result<Occupied<'a, Self>, Error>
Reserves the exact driver task domain without allocating group storage.
Sourcepub fn try_with<'a>(
target: Vacant<'a, Self>,
parent: RootWaker<'d>,
fibers: [F; N],
) -> Result<Occupied<'a, Self>, Error>
pub fn try_with<'a>( target: Vacant<'a, Self>, parent: RootWaker<'d>, fibers: [F; N], ) -> Result<Occupied<'a, Self>, Error>
Reserves the task domain and schedules every input in array order.
pub fn len(&self) -> Len<N>
Source§impl<'d, F, const N: usize> Group<'d, F, N>where
F: Fiber<'d>,
impl<'d, F, const N: usize> Group<'d, F, N>where
F: Fiber<'d>,
pub fn drive_ready<'group, 'out, 'call, 'turn>(
self: Pin<&'group mut Self>,
context: &'call mut Context<'turn, 'd>,
output: Vacant<'out, Drive<N>>,
) -> Drain<'group, 'out, 'call, 'turn, 'd, F, N> ⓘwhere
'd: 'turn,
pub fn drive_admit<'group, 'out, 'call, 'turn>(
self: Pin<&'group mut Self>,
admit: Admission<'call, 'turn, 'd>,
output: Vacant<'out, Drive<N>>,
) -> Drain<'group, 'out, 'call, 'turn, 'd, F, N> ⓘwhere
'd: 'turn,
Trait Implementations§
impl<'pin, 'd, F, const N: usize> Unpin for Group<'d, F, N>where
PinnedFieldsOf<__Group<'pin, 'd, F, N>>: Unpin,
Auto Trait Implementations§
impl<'d, F, const N: usize> !Freeze for Group<'d, F, N>
impl<'d, F, const N: usize> !RefUnwindSafe for Group<'d, F, N>
impl<'d, F, const N: usize> !Send for Group<'d, F, N>
impl<'d, F, const N: usize> !Sync for Group<'d, F, N>
impl<'d, F, const N: usize> !UnwindSafe for Group<'d, F, N>
impl<'d, F, const N: usize> Forget for Group<'d, F, N>
impl<'d, F, const N: usize> Move for Group<'d, F, N>
impl<'d, F, const N: usize> UnsafeUnpin for Group<'d, F, N>where
F: UnsafeUnpin,
Root<'d, Shared<Context<Receive>>>: UnsafeUnpin,
PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<*mut ()>: UnsafeUnpin,
Reference<'d>: UnsafeUnpin,
PhantomData<Sealed>: UnsafeUnpin,
PhantomData<fn(Index<N>) -> Index<N>>: UnsafeUnpin,
PhantomData<fn() -> Index<N>>: UnsafeUnpin,
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