Struct jormungandr_automation::testing::collector::OutputCollector
source · pub struct OutputCollector {
rx: Receiver<(Instant, String)>,
collected: Vec<String>,
}
Fields§
§rx: Receiver<(Instant, String)>
§collected: Vec<String>
Implementations§
source§impl OutputCollector
impl OutputCollector
pub fn new<R: Read + Send + 'static>(source: R) -> Self
fn read_input(&mut self)
sourcepub fn take_available_input(&mut self) -> Vec<String>
pub fn take_available_input(&mut self) -> Vec<String>
Collecte available input up to the point in time when this function was called and take collected lines out of the collector
sourcepub fn get_available_input(&mut self) -> &[String]
pub fn get_available_input(&mut self) -> &[String]
Collected available input up to the point in time when this function was called and return a reference to the lines collected by this collector
Auto Trait Implementations§
impl RefUnwindSafe for OutputCollector
impl Send for OutputCollector
impl !Sync for OutputCollector
impl Unpin for OutputCollector
impl UnwindSafe for OutputCollector
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request