pub struct UltraVibeBuilder { /* private fields */ }Expand description
A builder for creating an UltraVibeSystem.
This provides a flexible way to initialize the system with a custom number of normal and “super” worker nodes.
Implementations§
Source§impl UltraVibeBuilder
impl UltraVibeBuilder
Sourcepub fn with_nodes(self, count: usize) -> Self
pub fn with_nodes(self, count: usize) -> Self
Sets the total number of worker nodes for the system.
Sourcepub fn with_super_nodes(self, count: usize) -> Self
pub fn with_super_nodes(self, count: usize) -> Self
Sets the number of “super” nodes within the total node count.
Super nodes are configured with higher task queue capacity and more worker threads, making them suitable for more intensive tasks.
Sourcepub fn build(self) -> UltraVibeSystem
pub fn build(self) -> UltraVibeSystem
Builds and returns a fully initialized UltraVibeSystem.
This method uses the configured settings or falls back to defaults.
It creates all the VibeNode instances and wires them into the system.
§Panics
Panics if the number of super nodes is greater than the total number of nodes.
Trait Implementations§
Source§impl Default for UltraVibeBuilder
impl Default for UltraVibeBuilder
Source§fn default() -> UltraVibeBuilder
fn default() -> UltraVibeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UltraVibeBuilder
impl RefUnwindSafe for UltraVibeBuilder
impl Send for UltraVibeBuilder
impl Sync for UltraVibeBuilder
impl Unpin for UltraVibeBuilder
impl UnsafeUnpin for UltraVibeBuilder
impl UnwindSafe for UltraVibeBuilder
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