pub struct Reporter<'a, 'b, T> { /* private fields */ }Expand description
Input decorator that reports job status changes before reading a line
This decorator prints the status of jobs that have changed since the last
report. The status is printed to the standard error before the input is read.
This is done only if the Interactive and Monitor options are enabled.
Implementations§
Source§impl<'a, 'b, T> Reporter<'a, 'b, T>
impl<'a, 'b, T> Reporter<'a, 'b, T>
Sourcepub fn new(inner: T, env: &'a RefCell<&'b mut Env>) -> Self
pub fn new(inner: T, env: &'a RefCell<&'b mut Env>) -> Self
Creates a new Reporter decorator.
The first argument is the inner Input that performs the actual input
operation. The second argument is the shell environment that contains
the shell option state and the system interface to print to the standard
error. It is wrapped in a RefCell so that it can be shared with other
decorators and the parser.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, T> Freeze for Reporter<'a, 'b, T>where
T: Freeze,
impl<'a, 'b, T> !RefUnwindSafe for Reporter<'a, 'b, T>
impl<'a, 'b, T> !Send for Reporter<'a, 'b, T>
impl<'a, 'b, T> !Sync for Reporter<'a, 'b, T>
impl<'a, 'b, T> Unpin for Reporter<'a, 'b, T>where
T: Unpin,
impl<'a, 'b, T> !UnwindSafe for Reporter<'a, 'b, T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InputObject for Twhere
T: Input,
impl<T> InputObject for Twhere
T: Input,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more