Enum lamellar::BaseAmGroupReq
source · pub enum BaseAmGroupReq<T> {
SinglePeUnit(Pin<Box<dyn Future<Output = T> + Send>>),
SinglePeVal(Pin<Box<dyn Future<Output = Vec<T>> + Send>>),
AllPeUnit(Pin<Box<dyn Future<Output = Vec<T>> + Send>>),
AllPeVal(Pin<Box<dyn Future<Output = Vec<Vec<T>>> + Send>>),
}
Expand description
This enum is used to specify the type of AmGroup request
Variants§
SinglePeUnit(Pin<Box<dyn Future<Output = T> + Send>>)
This request will execute on a single PE and return the unit value
SinglePeVal(Pin<Box<dyn Future<Output = Vec<T>> + Send>>)
This request will return a single value of type T from a single PE
AllPeUnit(Pin<Box<dyn Future<Output = Vec<T>> + Send>>)
This request will execute on all PEs and return a vec of unit values
AllPeVal(Pin<Box<dyn Future<Output = Vec<Vec<T>>> + Send>>)
This request will execute on all PEs and return a vec of values of type T for each PE
Auto Trait Implementations§
impl<T> !RefUnwindSafe for BaseAmGroupReq<T>
impl<T> Send for BaseAmGroupReq<T>
impl<T> !Sync for BaseAmGroupReq<T>
impl<T> Unpin for BaseAmGroupReq<T>
impl<T> !UnwindSafe for BaseAmGroupReq<T>
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