pub struct PatchbayManagerBuilder { /* private fields */ }Expand description
Builder for creating a PatchbayManager with a fluent API.
Implementations§
Source§impl PatchbayManagerBuilder
impl PatchbayManagerBuilder
Sourcepub fn with_config(self, config: PatchbayConfig) -> Self
pub fn with_config(self, config: PatchbayConfig) -> Self
Set the patchbay configuration.
Sourcepub fn with_update_rate(self, hz: f64) -> Self
pub fn with_update_rate(self, hz: f64) -> Self
Set the update rate in Hz.
Sourcepub fn with_command_queue(self, queue: Arc<MpscQueue<ParameterCommand>>) -> Self
pub fn with_command_queue(self, queue: Arc<MpscQueue<ParameterCommand>>) -> Self
Set the command queue.
Sourcepub fn with_event_channel(self, tx: Sender<PatchbayEvent>) -> Self
pub fn with_event_channel(self, tx: Sender<PatchbayEvent>) -> Self
Set the event notification channel.
Sourcepub fn with_stats(self, enabled: bool) -> Self
pub fn with_stats(self, enabled: bool) -> Self
Enable or disable statistics collection.
Sourcepub fn build(self) -> PatchbayManager
pub fn build(self) -> PatchbayManager
Build the PatchbayManager.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatchbayManagerBuilder
impl RefUnwindSafe for PatchbayManagerBuilder
impl Send for PatchbayManagerBuilder
impl Sync for PatchbayManagerBuilder
impl Unpin for PatchbayManagerBuilder
impl UnsafeUnpin for PatchbayManagerBuilder
impl UnwindSafe for PatchbayManagerBuilder
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