pub struct Cluster { /* private fields */ }Expand description
A set of Compio workers on which actors are placed.
Implementations§
Source§impl Cluster
impl Cluster
Sourcepub fn from_dispatcher(dispatcher: Dispatcher) -> Self
pub fn from_dispatcher(dispatcher: Dispatcher) -> Self
Creates a cluster from a configured dispatcher.
Sourcepub fn spawn<A, F>(
&self,
factory: F,
arguments: A::Arguments,
) -> Spawn<'_, A, F>
pub fn spawn<A, F>( &self, factory: F, arguments: A::Arguments, ) -> Spawn<'_, A, F>
Configures an actor spawn operation.
The return type is a configurable future implementing IntoFuture.
See Spawn for detail.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnsafeUnpin for Cluster
impl UnwindSafe 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