pub struct ObservedIo {
pub input: InputPolicy,
pub output: OutputPolicy,
pub observer: OutputObserver,
}Expand description
Pipe-backed live observation mode with optional capture.
Fields§
§input: InputPolicyStandard input policy.
output: OutputPolicyOutput capture policy.
observer: OutputObserverOutput callbacks.
Implementations§
Source§impl ObservedIo
impl ObservedIo
Sourcepub fn new(observer: OutputObserver) -> Self
pub fn new(observer: OutputObserver) -> Self
Create observed mode with the provided callbacks.
Sourcepub fn with_input(self, input: InputPolicy) -> Self
pub fn with_input(self, input: InputPolicy) -> Self
Set the stdin policy.
Sourcepub fn with_output(self, output: OutputPolicy) -> Self
pub fn with_output(self, output: OutputPolicy) -> Self
Set the output policy.
Trait Implementations§
Source§impl Clone for ObservedIo
impl Clone for ObservedIo
Source§fn clone(&self) -> ObservedIo
fn clone(&self) -> ObservedIo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObservedIo
impl Debug for ObservedIo
Source§impl Default for ObservedIo
impl Default for ObservedIo
Source§fn default() -> ObservedIo
fn default() -> ObservedIo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ObservedIo
impl !UnwindSafe for ObservedIo
impl Freeze for ObservedIo
impl Send for ObservedIo
impl Sync for ObservedIo
impl Unpin for ObservedIo
impl UnsafeUnpin for ObservedIo
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