pub struct CmdOptionsBuilder { /* private fields */ }Expand description
Builder for CmdOptions.
Implementations§
Source§impl CmdOptionsBuilder
impl CmdOptionsBuilder
Sourcepub fn builder() -> Self
pub fn builder() -> Self
Create empty builder. Same as CmdOptionsBuilder::default().
Sourcepub fn current_dir<T>(&mut self, current_dir: T) -> &mut Self
pub fn current_dir<T>(&mut self, current_dir: T) -> &mut Self
Set process current directory.
Sourcepub fn clear_inherited_envs(&mut self, clear_envs: bool) -> &mut Self
pub fn clear_inherited_envs(&mut self, clear_envs: bool) -> &mut Self
Clear or retain environment variables inherited from a parent process.
Sourcepub fn inherited_envs_to_remove<I, T>(&mut self, envs: I) -> &mut Self
pub fn inherited_envs_to_remove<I, T>(&mut self, envs: I) -> &mut Self
Remove specific environment variables inherited from a parent process.
Sourcepub fn output_buffer_capacity(&mut self, capacity: BufferCapacity) -> &mut Self
pub fn output_buffer_capacity(&mut self, capacity: BufferCapacity) -> &mut Self
Set message output buffer capacity.
Sourcepub fn message_input(&mut self, messaging_type: MessagingType) -> &mut Self
pub fn message_input(&mut self, messaging_type: MessagingType) -> &mut Self
Set message input type.
Sourcepub fn message_output(&mut self, messaging_type: MessagingType) -> &mut Self
pub fn message_output(&mut self, messaging_type: MessagingType) -> &mut Self
Set message output type.
Sourcepub fn logging_type(&mut self, logging_type: LoggingType) -> &mut Self
pub fn logging_type(&mut self, logging_type: LoggingType) -> &mut Self
Set logging type.
Sourcepub fn build(&mut self) -> Result<CmdOptions, CmdOptionsError>
pub fn build(&mut self) -> Result<CmdOptions, CmdOptionsError>
Create a CmdOptions from this builder.
Trait Implementations§
Source§impl Clone for CmdOptionsBuilder
impl Clone for CmdOptionsBuilder
Source§fn clone(&self) -> CmdOptionsBuilder
fn clone(&self) -> CmdOptionsBuilder
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 CmdOptionsBuilder
impl Debug for CmdOptionsBuilder
Source§impl Default for CmdOptionsBuilder
impl Default for CmdOptionsBuilder
Source§fn default() -> CmdOptionsBuilder
fn default() -> CmdOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CmdOptionsBuilder
impl RefUnwindSafe for CmdOptionsBuilder
impl Send for CmdOptionsBuilder
impl Sync for CmdOptionsBuilder
impl Unpin for CmdOptionsBuilder
impl UnwindSafe for CmdOptionsBuilder
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