Struct parables_testing::evm::LogDrainer [−][src]
pub struct LogDrainer<'a, P> { /* fields omitted */ }Methods
impl<'a, P> LogDrainer<'a, P> where
P: ParseLog + LogFilter, [src]
impl<'a, P> LogDrainer<'a, P> where
P: ParseLog + LogFilter, pub fn new(evm: &'a Evm, log: P) -> Self[src]
pub fn new(evm: &'a Evm, log: P) -> Selfpub fn filter<M>(self, map: M) -> Self where
M: FnOnce(&P) -> TopicFilter, [src]
pub fn filter<M>(self, map: M) -> Self where
M: FnOnce(&P) -> TopicFilter, Modify the current drainer with a new filter.
pub fn iter(
self
) -> Result<impl Iterator<Item = P::Log>, Error> where
P: ParseLog, [src]
pub fn iter(
self
) -> Result<impl Iterator<Item = P::Log>, Error> where
P: ParseLog, Consumer the drainer and build an interator out of it.
pub fn drop(self) -> Result<(), Error>[src]
pub fn drop(self) -> Result<(), Error>Consumer the drainer without processing elements.
pub fn drain(self) -> Result<Vec<P::Log>, Error> where
P: ParseLog, [src]
pub fn drain(self) -> Result<Vec<P::Log>, Error> where
P: ParseLog, Drain logs matching the given filter that has been registered so far.
pub fn drain_with_sender(self) -> Result<Vec<(Address, P::Log)>, Error>[src]
pub fn drain_with_sender(self) -> Result<Vec<(Address, P::Log)>, Error>Drain logs matching the given filter that has been registered so far.
Include who sent the logs in the result.
Trait Implementations
impl<'a, P: Debug> Debug for LogDrainer<'a, P>[src]
impl<'a, P: Debug> Debug for LogDrainer<'a, P>Auto Trait Implementations
impl<'a, P> !Send for LogDrainer<'a, P>
impl<'a, P> !Send for LogDrainer<'a, P>impl<'a, P> !Sync for LogDrainer<'a, P>
impl<'a, P> !Sync for LogDrainer<'a, P>