pub struct ProcessConfig {
pub auto_start: bool,
pub start_port: Option<u16>,
pub debug: bool,
}Expand description
Configuration for process management
Fields§
§auto_start: boolWhether to automatically start the iFlow process
start_port: Option<u16>Port to start the iFlow process on (only used in auto-start WebSocket mode)
debug: boolWhether to start the iFlow process in debug mode
Implementations§
Source§impl ProcessConfig
impl ProcessConfig
Sourcepub fn auto_start(self, auto_start: bool) -> Self
pub fn auto_start(self, auto_start: bool) -> Self
Set whether to automatically start the iFlow process
Sourcepub fn start_port(self, port: u16) -> Self
pub fn start_port(self, port: u16) -> Self
Set the port to start the iFlow process on (only used in WebSocket mode)
Sourcepub fn manual_start(self) -> Self
pub fn manual_start(self) -> Self
Disable process auto-start
Sourcepub fn enable_auto_start(self) -> Self
pub fn enable_auto_start(self) -> Self
Enable process auto-start
Sourcepub fn enable_debug(self) -> Self
pub fn enable_debug(self) -> Self
Enable debug mode
Sourcepub fn stdio_mode(self) -> Self
pub fn stdio_mode(self) -> Self
Configure for stdio mode (no port needed)
Trait Implementations§
Source§impl Clone for ProcessConfig
impl Clone for ProcessConfig
Source§fn clone(&self) -> ProcessConfig
fn clone(&self) -> ProcessConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessConfig
impl Debug for ProcessConfig
Auto Trait Implementations§
impl Freeze for ProcessConfig
impl RefUnwindSafe for ProcessConfig
impl Send for ProcessConfig
impl Sync for ProcessConfig
impl Unpin for ProcessConfig
impl UnwindSafe for ProcessConfig
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