Struct dev_scope::shared::prelude::OutputCaptureBuilder
source · pub struct OutputCaptureBuilder { /* private fields */ }
Expand description
Builder for OutputCapture
.
Implementations§
source§impl OutputCaptureBuilder
impl OutputCaptureBuilder
pub fn working_dir<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
pub fn stdout<VALUE: Into<Vec<(DateTime<Utc>, String)>>>( &mut self, value: VALUE ) -> &mut Self
pub fn stderr<VALUE: Into<Vec<(DateTime<Utc>, String)>>>( &mut self, value: VALUE ) -> &mut Self
pub fn exit_code<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
pub fn start_time<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE ) -> &mut Self
pub fn end_time<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE ) -> &mut Self
pub fn command<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn build(&self) -> Result<OutputCapture, OutputCaptureBuilderError>
pub fn build(&self) -> Result<OutputCapture, OutputCaptureBuilderError>
Trait Implementations§
source§impl Clone for OutputCaptureBuilder
impl Clone for OutputCaptureBuilder
source§fn clone(&self) -> OutputCaptureBuilder
fn clone(&self) -> OutputCaptureBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for OutputCaptureBuilder
impl Send for OutputCaptureBuilder
impl Sync for OutputCaptureBuilder
impl Unpin for OutputCaptureBuilder
impl UnwindSafe for OutputCaptureBuilder
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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