pub struct PatchbayManagerBuilder { /* private fields */ }Expand description
Строитель для PatchbayManager
Implementations§
Source§impl PatchbayManagerBuilder
impl PatchbayManagerBuilder
Sourcepub fn with_config(self, config: PatchbayConfig) -> Self
pub fn with_config(self, config: PatchbayConfig) -> Self
Установить конфигурацию
Sourcepub fn with_update_rate(self, hz: f64) -> Self
pub fn with_update_rate(self, hz: f64) -> Self
Установить частоту обновления
Sourcepub fn with_command_queue(self, queue: Arc<MpscQueue<ParameterCommand>>) -> Self
pub fn with_command_queue(self, queue: Arc<MpscQueue<ParameterCommand>>) -> Self
Установить очередь команд
Sourcepub fn with_event_channel(self, tx: Sender<PatchbayEvent>) -> Self
pub fn with_event_channel(self, tx: Sender<PatchbayEvent>) -> Self
Установить канал событий
Sourcepub fn with_stats(self, enabled: bool) -> Self
pub fn with_stats(self, enabled: bool) -> Self
Включить сбор статистики
Sourcepub fn build(self) -> PatchbayManager
pub fn build(self) -> 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