[][src]Struct ethcontract::contract::EventStream

#[must_use = "streams do nothing unless you or poll them"]pub struct EventStream<T: Transport, E: Detokenize> { /* fields omitted */ }

An event stream that emits events matching a builder.

Methods

impl<T: Transport, E: Detokenize> EventStream<T, E>[src]

pub fn from_builder(builder: EventBuilder<T, E>) -> Result<Self, EventError>[src]

Create a new log stream from a given web3 provider, filter and polling parameters.

Trait Implementations

impl<T: Transport, E: Detokenize> PinnedDrop for EventStream<T, E>[src]

impl<T: Transport, E: Detokenize> Stream for EventStream<T, E>[src]

type Item = Result<Event<E>, EventError>

Values yielded by the stream.

impl<'pin, T: Transport, E: Detokenize> Unpin for EventStream<T, E> where
    __EventStream<'pin, T, E>: Unpin
[src]

Auto Trait Implementations

impl<T, E> !RefUnwindSafe for EventStream<T, E>

impl<T, E> Send for EventStream<T, E> where
    E: Send,
    T: Send,
    <T as Transport>::Out: Send

impl<T, E> !Sync for EventStream<T, E>

impl<T, E> !UnwindSafe for EventStream<T, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,