pub enum StreamSource {
Stdout = 0,
Stderr = 1,
}
Expand description
Specifies the source stream for output monitoring
Used with ready indicators to specify whether to monitor stdout or stderr for the ready signal from long-running processes.
§Examples
use tcrm_task::tasks::config::{TaskConfig, StreamSource};
// Monitor stdout for ready signal
let config = TaskConfig::new("web-server")
.ready_indicator("Server ready")
.ready_indicator_source(StreamSource::Stdout);
// Monitor stderr for ready signal
let config2 = TaskConfig::new("database")
.ready_indicator("Ready for connections")
.ready_indicator_source(StreamSource::Stderr);
Variants§
Trait Implementations§
Source§impl Clone for StreamSource
impl Clone for StreamSource
Source§fn clone(&self) -> StreamSource
fn clone(&self) -> StreamSource
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 StreamSource
impl Debug for StreamSource
Source§impl Default for StreamSource
impl Default for StreamSource
Source§impl PartialEq for StreamSource
impl PartialEq for StreamSource
impl StructuralPartialEq for StreamSource
Auto Trait Implementations§
impl Freeze for StreamSource
impl RefUnwindSafe for StreamSource
impl Send for StreamSource
impl Sync for StreamSource
impl Unpin for StreamSource
impl UnwindSafe for StreamSource
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