pub struct NodeBuilder { /* private fields */ }Expand description
Builds a Node.
Implementations§
Source§impl NodeBuilder
impl NodeBuilder
Sourcepub fn datamodels(self, r: Arc<dyn DatamodelRegistry + Send + Sync>) -> Self
pub fn datamodels(self, r: Arc<dyn DatamodelRegistry + Send + Sync>) -> Self
Datamodels the node’s charts may name (null is always available).
Sourcepub fn mailboxes(self, f: Arc<dyn MailboxFactory>) -> Self
pub fn mailboxes(self, f: Arc<dyn MailboxFactory>) -> Self
The mailbox implementation for every address without a scheme-specific one.
Sourcepub fn mailboxes_for_scheme(
self,
scheme: &str,
f: Arc<dyn MailboxFactory>,
) -> Self
pub fn mailboxes_for_scheme( self, scheme: &str, f: Arc<dyn MailboxFactory>, ) -> Self
The mailbox implementation for addresses of scheme.
Sourcepub fn transport(self, t: Arc<dyn Transport>) -> Self
pub fn transport(self, t: Arc<dyn Transport>) -> Self
Registers a transport besides the local one.
Sourcepub fn config(self, c: NodeConfig) -> Self
pub fn config(self, c: NodeConfig) -> Self
Node settings.
Sourcepub fn placement(self, p: Arc<dyn Placement>) -> Self
pub fn placement(self, p: Arc<dyn Placement>) -> Self
The placement of a clustered node: where virtual actors and workers live. Without one the node hosts every virtual actor it knows the chart type of.
Sourcepub fn build(self) -> Node
pub fn build(self) -> Node
Builds the node. On its first Node::pump (after the chart types are registered) it
recovers what a previous process left: pending timers, undispatched sends and stored
mailbox messages.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NodeBuilder
impl !UnwindSafe for NodeBuilder
impl Forget for NodeBuilder
impl Freeze for NodeBuilder
impl Move for NodeBuilder
impl Send for NodeBuilder
impl Sync for NodeBuilder
impl Unpin for NodeBuilder
impl UnsafeUnpin for NodeBuilder
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