pub struct Cluster { /* private fields */ }Implementations§
Source§impl Cluster
impl Cluster
pub async fn new(config: ClusterConfig) -> Result<Self>
pub async fn execute<D, R, F, Fut>(&self, data: D, task: F) -> TaskResult<R>
pub async fn run<D, R, F, Fut>( &self, items: impl IntoIterator<Item = D>, task: F, ) -> Vec<TaskResult<R>>
pub async fn close(self)
Auto Trait Implementations§
impl !RefUnwindSafe for Cluster
impl !UnwindSafe for Cluster
impl Freeze for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnsafeUnpin for Cluster
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